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 (BlueprintCallable, Category=PhysicsControl)
FName CreateControl
(
UPrimitiveComponent * ParentComponent,
FName ParentBoneName,
UPrimitiveComponent * ChildComponent,
const FName ChildBoneName,
const FPhysicsControlData ControlData,
const FPhysicsControlTarget ControlTarget,
FName Set,
FString NamePrefix
)
Remarks
Creates a new control for mesh components The name of the new control
Parameters
| Name | Description |
|---|---|
| ControlData | Describes the initial strength etc of the new control |
| ControlTarget | Describes the initial target for the new 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 activate it. |
| NamePrefix | Optional string that is prefixed to the control that is created. |