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
Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback