UCharacterMovementComponent::AddImpulse

Add impulse to character.

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 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.