Navigation
API > API/Plugins > API/Plugins/PhysicsControl > API/Plugins/PhysicsControl/UPhysicsControlComponent
References
| Module | PhysicsControl |
| Header | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlComponent.h |
| Include | #include "PhysicsControlComponent.h" |
| Source | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Private/PhysicsControlComponent.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;PhysicsControl&41;
TMap< FName, FPhysicsControlNames > CreateControlsFromLimbBones
&40;
FPhysicsControlNames & AllControls,
const TMap< FName, FPhysicsControlLimbBones > & LimbBones,
const EPhysicsControlType ControlType,
const FPhysicsControlData ControlData,
const FPhysicsControlSettings ControlSettings,
const bool bEnabled
&41;
Remarks
Creates a collection of controls controlling a skeletal mesh, grouped together in limbs A map containing the controls for each limb
Parameters
| Name | Description |
|---|---|
| AllControls | A single container for all the controls that have been created |
| LimbBones | A map relating the limbs and the bones that they contain. Typically create this using GetLimbBonesFromSkeletalMesh |
| ControlType | What type of control to create. This determines what the parent will be for each control |
| ControlData | Describes the initial strength etc of the new control |
| ControlSettings | General settings for the control |
| bEnabled | If true then the control will be enabled immediately. If false you will need to call SetControlEnabled(true) in order to enable it. |