Choose your operating system:
Windows
macOS
Linux
| UMovementComponent::AddRadialImpulse()
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/MovementComponent.h |
Include |
#include "GameFramework/MovementComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Components/MovementComponent.cpp |
virtual void AddRadialImpulse
(
const FVector & Origin,
float Radius,
float Strength,
ERadialImpulseFalloff Falloff,
bool bVelChange
)
Adds impulse from radial force components. Intended to be overridden by subclasses; default implementation does nothing.
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). |