UPrimitiveComponent::AddImpulse

Add an impulse to a single rigid body. Good for one time instant burst.

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::AddImpulse()

UDestructibleComponent::AddImpulse()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h

Include

#include "Components/PrimitiveComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp

Syntax

virtual void AddImpulse
(
    FVector Impulse,
    FName BoneName,
    bool bVelChange
)

Remarks

Add an impulse to a single rigid body. Good for one time instant burst.

Parameters

Parameter

Description

Impulse

Magnitude and direction of impulse to apply.

BoneName

If a SkeletalMeshComponent, name of body to apply impulse to. 'None' indicates root body.

bVelChange

If true, the Strength is taken as a change in velocity instead of an impulse (ie. mass will have no effect).

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