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!
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!
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
Exactly. .
So it will multiply each component of the vector properly simply doing Velocity *= DeltaSeconds, assuming Velocity is FVector?
Thanks for your time!
Great, thank you both!