Calc Velocity

Calc Velocity

Windows
MacOS
Linux

Updates Velocity and Acceleration based on the current state, applying the effects of friction and acceleration or deceleration. Does not apply gravity. This is used internally during movement updates. Normally you don't need to call this from outside code, but you might want to use it for custom movement modes.

Target is Character Movement Component

Calc Velocity
Target
Delta Time
0.0
Friction
0.0
Fluid
Braking Deceleration
0.0

Inputs

In
Exec
Target
Character Movement Component Object Reference
Delta Time
Float

time elapsed since last frame.

Friction
Float

coefficient of friction when not accelerating, or in the direction opposite acceleration.

Fluid
Boolean

true if moving through a fluid, causing Friction to always be applied regardless of acceleration.

Braking Deceleration
Float

deceleration applied when not accelerating, or when exceeding max velocity.

Outputs

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