Navigation
API > API/Plugins > API/Plugins/ControlRigPhysics
This will add a force (or impulse, torque, velocity change etc) to the body. The force record will be stored in the physics body component, and then applied next time the solver is stepped, after which the record will be cleared.
| Name | FRigUnit_HierarchyAddPhysicsBodyForce |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/ControlRigPhysics/Source/ControlRigPhysics/Public/RigPhysicsBodyExecution.h |
| Include Path | #include "RigPhysicsBodyExecution.h" |
Syntax
USTRUCT (
Meta=(DisplayName="Add Force", Varying, Keywords="Physics, Impulse, Torque, Acceleration, Velocity"))
struct FRigUnit_HierarchyAddPhysicsBodyForce : public FRigUnit_PhysicsBaseMutable
Inheritance Hierarchy
- FRigVMStruct → FRigUnit → FRigUnitMutable → FRigUnit_PhysicsBaseMutable → FRigUnit_HierarchyAddPhysicsBodyForce
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRigUnit_HierarchyAddPhysicsBodyForce() |
RigPhysicsBodyExecution.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ForceAndTorque | FPhysicsControlForceAndTorqueData | The desired force/torque to be applied. | RigPhysicsBodyExecution.h |
|
| Name | FName | The optional name of this force record. | RigPhysicsBodyExecution.h |
|
| PhysicsBodyComponentKey | FRigComponentKey | The Physics Body to be updated. | RigPhysicsBodyExecution.h |
|
Functions
Public
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Execute() |
RigPhysicsBodyExecution.h |