Navigation
API > API/Plugins > API/Plugins/ControlRigPhysics
Adds a new physics solver as a component on the owner element. Note: This node only runs during the construction event (before physics instantiation, after which this data is frozen).
Deprecated in favour of FRigUnit_SpawnPhysicsSolver, which exposes the new SpaceMotion + TeleportDetection input pins separately. Existing graphs continue to work - the deprecated Execute body routes the legacy SimulationSpaceSettings into the new component members via ConvertLegacyPhysicsSimulationSpaceSettings; right-clicking the deprecated node offers a one-click upgrade to the new node via GetUpgradeInfo.
| Name | FRigUnit_AddPhysicsSolver |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/ControlRigPhysics/Source/ControlRigPhysics/Public/RigPhysicsSolverExecution.h |
| Include Path | #include "RigPhysicsSolverExecution.h" |
Syntax
USTRUCT (
Meta=(DisplayName="Spawn Physics Solver", Keywords="Add,Construction,Create,New,Simulation", Varying, Deprecated="5.8"))
struct FRigUnit_AddPhysicsSolver : public FRigUnit_PhysicsBaseMutable
Inheritance Hierarchy
- FRigVMStruct → FRigUnit → FRigUnitMutable → FRigUnit_PhysicsBaseMutable → FRigUnit_AddPhysicsSolver
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRigUnit_AddPhysicsSolver() |
RigPhysicsSolverExecution.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Owner | FRigElementKey | The owner of the newly created component (must be set/valid) | RigPhysicsSolverExecution.h |
|
| PhysicsSolverComponentKey | FRigComponentKey | The component key of the solver that has been added. | RigPhysicsSolverExecution.h |
|
| SimulationSpaceSettings | FRigPhysicsSimulationSpaceSettings | Settings for the solver that apply to when it uses a simulation space other than "world". | RigPhysicsSolverExecution.h |
|
| SolverSettings | FRigPhysicsSolverSettings | Settings for the physics solver that will be added. | RigPhysicsSolverExecution.h |
|
Functions
Public
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Execute() |
RigPhysicsSolverExecution.h | ||
virtual FRigVMStructUpgradeInfo GetUpgradeInfo () |
Maps the legacy SimulationSpaceSettings pin onto the FRigUnit_SpawnPhysicsSolver layout (SpaceMotion + TeleportDetection sub-pins). | RigPhysicsSolverExecution.h |