Calculate Velocity From Position History

Calculate Velocity From Position History

Windows
MacOS
Linux

This function calculates the velocity of a position changing over time. You need to hook up a valid PositionHistory variable to this for storage.

Target is Kismet Animation Library

Calculate Velocity From Position History
Delta Seconds
0.0
Position
X0
Y 0
Z 0
History
Number Of Samples
16
Velocity Min
0.f
Velocity Max
128.f
Return Value
0.0

Inputs

In
Exec
Delta Seconds
Float

The time passed in seconds

Position
Vector

The position to track over time.

History
Position History Structure (by ref)

The history to use for storage.

Number Of Samples
Integer

The number of samples to use for the history. The higher the number of samples - the smoother the velocity changes.

Velocity Min
Float

The minimum velocity to use for normalization (if both min and max are set to 0, normalization is turned off)

Velocity Max
Float

The maximum velocity to use for normalization (if both min and max are set to 0, normalization is turned off)

Outputs

Out
Exec
Return Value
Float
Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss