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;
TArray< FName > CreateControlsFromSkeletalMesh
&40;
USkeletalMeshComponent &42; SkeletalMeshComponent,
const TArray< FName > & BoneNames,
const EPhysicsControlType ControlType,
const FPhysicsControlData ControlData,
const FPhysicsControlSettings ControlSettings,
const FName Set,
const bool bEnabled
&41;
Remarks
Creates a collection of controls controlling a skeletal mesh An array of the controls that have been created
Parameters
| Name | Description |
|---|---|
| SkeletalMeshComponent | The skeletal mesh which will have controls |
| BoneNames | The names of bones for which controls should be created. Each bone will be the child in a control |
| 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 |
| Set | Which set to include the control in (optional). Note that it automatically gets added to the set "All" |
| bEnabled | If true then the control will be enabled immediately. If false you will need to call SetControlEnabled(true) in order to enable it. |