x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Turning FVector velocity into a units/second metric.

I understand scaling the FVector so it becomes a unit/second metric value, but I don't know what that looks like in terms of implementing the math... Would I use Velocity.operator*(DeltaSeconds) or simply Velocity * DeltaSeconds? Or..?

Thanks!

Product Version: Not Selected
Tags:
more ▼

asked Apr 25 '15 at 10:43 PM in C++ Programming

avatar image

DanaFo
242 17 27 36

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Operator overrides are made so you can use them as operators rather then as a functions, so Velocity * DeltaSeconds , but operators works like function so they return something and oyu need to assign result somewhere so you need to do Velocity = Velocity * DeltaSeconds, but you can fancy shortcut Velocity *= DeltaSeconds

more ▼

answered Apr 26 '15 at 12:48 AM

avatar image

Shadowriver
37.3k 936 172 1116

avatar image DanaFo Apr 26 '15 at 01:36 AM

So it will multiply each component of the vector properly simply doing Velocity *= DeltaSeconds, assuming Velocity is FVector?

Thanks for your time!

avatar image birdfreeyahoo Apr 26 '15 at 01:40 AM

Exactly. .

avatar image DanaFo Apr 26 '15 at 01:49 AM

Great, thank you both!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question