Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine > FBodyInstance
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 |
void AddRadialForceToBody
&40;
const FVector & Origin,
float Radius,
float Strength,
uint8 Falloff,
bool bAccelChange,
bool bAllowSubstepping
&41;
Remarks
Add a force to this bodyinstance, originating from the supplied world-space location.
Parameters
Name | Description |
---|---|
Origin | Origin of force in world space. |
Radius | Radius within which to apply the force. |
Strength | Strength of force to apply. |
Falloff | Allows you to control the strength of the force as a function of distance from Origin. |
bAccelChange | If true, Strength is taken as a change in acceleration instead of a physical force (i.e. mass will have no effect). |
bAllowSubstepping | Whether we should sub-step this radial force. You should only turn this off if you're calling it from a sub-step callback, otherwise there will be energy loss |