Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchyController
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchyController.h |
| Include | #include "Rigs/RigHierarchyController.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Private/Rigs/RigHierarchyController.cpp |
UFUNCTION (BlueprintCallable, Category=URigHierarchyController)
FRigElementKey AddPhysicsElement
(
FName InName,
FRigElementKey InParent,
FRigPhysicsSolverID InSolver,
FRigPhysicsSettings InSettings,
FTransform InLocalTransform,
bool bSetupUndo,
bool bPrintPythonCommand
)
Remarks
Adds a physics element to the hierarchy The key for the newly created physics element.
Parameters
| Name | Description |
|---|---|
| InName | The suggested name of the new physics element - will eventually be corrected by the namespace |
| InParent | The (optional) parent of the new physics element. If you don't need a parent, pass FRigElementKey() |
| InSolver | The guid identifying the solver to use |
| InSettings | All of the physics element's settings |
| InLocalTransform | The transform for the new physics element - in the space of the provided parent |
| bSetupUndo | If set to true the stack will record the change for undo / redo |
| bPrintPythonCommand | If set to true a python command equivalent to this call will be printed out |