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, Meta=(ReturnDisplayName="Success"))
bool CreateNamedControl
(
FName Name,
UPrimitiveComponent * ParentComponent,
const FName ParentBoneName,
UPrimitiveComponent * ChildComponent,
const FName ChildBoneName,
const FPhysicsControlData ControlData,
const FPhysicsControlTarget ControlTarget,
const FName Set
)
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 |
| 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. |