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;
bool CreateNamedControl
&40;
FName Name,
UMeshComponent &42; ParentMeshComponent,
const FName ParentBoneName,
UMeshComponent &42; ChildMeshComponent,
const FName ChildBoneName,
const FPhysicsControlData ControlData,
const FPhysicsControlTarget ControlTarget,
const FPhysicsControlSettings ControlSettings,
const FName Set,
const bool bEnabled
&41;
Remarks
Creates a new control for mesh components True if a new control was created, false if a control of the specified name already exists
Parameters
| Name | Description |
|---|---|
| The | name of the control that will be created. Creation will fail if this name is already in use. |
| ControlData | Describes the initial strength etc of the new control |
| ControlTarget | Describes the initial target for 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. |