FBodyInstance::AddRadialImpulseToBody

Add an impulse to this bodyinstance, radiating out from the specified position.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h

Include

#include "PhysicsEngine/BodyInstance.h"

Source

/Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodyInstance.cpp

Syntax

void AddRadialImpulseToBody
(
    const FVector & Origin,
    float Radius,
    float Strength,
    uint8 Falloff,
    bool bVelChange
)

Remarks

Add an impulse to this bodyinstance, radiating out from the specified position.

Parameters

Parameter

Description

Origin

Point of origin for the radial impulse blast, in world space

Radius

Size of radial impulse. Beyond this distance from Origin, there will be no affect.

Strength

Maximum strength of impulse applied to body.

Falloff

Allows you to control the strength of the impulse as a function of distance from Origin.

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