Navigation
API > API/Plugins > API/Plugins/ControlRigPhysics
Adds a new physics body as a component on the owner element. Note: This node only runs as part of the construction event.
| Name | FRigUnit_AddPhysicsBody |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/ControlRigPhysics/Source/ControlRigPhysics/Public/RigPhysicsBodyExecution.h |
| Include Path | #include "RigPhysicsBodyExecution.h" |
Syntax
USTRUCT (
Meta=(DisplayName="Spawn Physics Body", Keywords="Add,Construction,Create,New,Body,Skeleton", Varying))
struct FRigUnit_AddPhysicsBody : public FRigUnit_PhysicsBaseMutable
Inheritance Hierarchy
- FRigVMStruct → FRigUnit → FRigUnitMutable → FRigUnit_PhysicsBaseMutable → FRigUnit_AddPhysicsBody
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRigUnit_AddPhysicsBody() |
RigPhysicsBodyExecution.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BodyData | FPhysicsControlModifierData | The runtime modifiable data. | RigPhysicsBodyExecution.h |
|
| Collision | FRigPhysicsCollision | The collision properties of the new physics element. | RigPhysicsBodyExecution.h |
|
| Dynamics | FRigPhysicsDynamics | The dynamics properties of the new physics element | RigPhysicsBodyExecution.h |
|
| Owner | FRigElementKey | The owner of the newly created component (must be set/valid) | RigPhysicsBodyExecution.h |
|
| PhysicsBodyComponentKey | FRigComponentKey | RigPhysicsBodyExecution.h |
|
|
| Solver | FRigPhysicsBodySolverSettings | The solver to relate this new physics element to | RigPhysicsBodyExecution.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Execute() |
RigPhysicsBodyExecution.h |