UMovementComponent::AddRadialImpulse

Adds impulse from radial force components.

Windows
MacOS
Linux

Override Hierarchy

UMovementComponent::AddRadialImpulse()

UCharacterMovementComponent::AddRadialImpulse()

Syntax

virtual void AddRadialImpulse
(
    const FVector & Origin,
    float Radius,
    float Strength,
    ERadialImpulseFalloff Falloff,
    bool bVelChange
)

Remarks

Adds impulse from radial force components. Intended to be overridden by subclasses; default implementation does nothing.

Parameters

Parameter

Description

Origin

The origin of the force

Radius

The radius in which the force will be applied

Strength

The strength of the force

Falloff

The falloff from the force's origin

bVelChange

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

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/MovementComponent.h

Source

Runtime/Engine/Private/Components/MovementComponent.cpp

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback