Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h |
Include |
#include "GameFramework/CharacterMovementComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp |
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.
Parameter |
Description |
---|---|
DeltaTime |
time elapsed since last frame. |
Friction |
coefficient of friction when not accelerating, or in the direction opposite acceleration. |
bFluid |
true if moving through a fluid, causing Friction to always be applied regardless of acceleration. |
BrakingDeceleration |
deceleration applied when not accelerating, or when exceeding max velocity. |