UCharacterMovementComponent::ApplyAccumulatedForces

Applies momentum accumulated through [AddImpulse()](API\Runtime\Engine\GameFramework\UCharacterMovementComponent\AddImpulse) and [AddForce()](API\Runtime\Engine\GameFramework\UCharacterMovementComponent\AddForce), then clears those forces.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual void ApplyAccumulatedForces
(
    float DeltaSeconds
)

Remarks

Applies momentum accumulated through AddImpulse() and AddForce(), then clears those forces. Does not use ClearAccumulatedForces() since that would clear pending launch velocity as well.

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