UCharacterMovementComponent::AddImpulse

Add impulse to character.

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 AddImpulse
(
    FVector Impulse,
    bool bVelocityChange
)

Remarks

Add impulse to character. Impulses are accumulated each tick and applied together so multiple calls to this function will accumulate. An impulse is an instantaneous force, usually applied once. If you want to continually apply forces each frame, use AddForce().

that changing the momentum of characters like this can change the movement mode.

Parameters

Parameter

Description

Impulse

Impulse to apply.

bVelocityChange

Whether or not the impulse is relative to mass.

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