UCharacterMovementComponent::ClearAccumulatedForces

Clears forces accumulated through [AddImpulse()](API\Runtime\Engine\GameFramework\UCharacterMovementComponent\AddImpulse) and [AddForce()](API\Runtime\Engine\GameFramework\UCharacterMovementComponent\AddForce), and also pending launch velocity.

Choose your operating system:

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 ClearAccumulatedForces()

Remarks

Clears forces accumulated through AddImpulse() and AddForce(), and also pending launch velocity.