Navigation
API > API/Plugins > API/Plugins/PhysicsControl > API/Plugins/PhysicsControl/UPhysicsControlComponent
Description
Calculates and sets an existing control target. This takes the "virtual" position/orientation of the parent and child and calculates the relative control. Note that this will set bApplyControlPointToTarget to true.
| Name | SetControlTargetPoses |
| Type | function |
| Header File | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlComponent.h |
| Include Path | #include "PhysicsControlComponent.h" |
| Source | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Private/PhysicsControlComponent.cpp |
UFUNCTION (BlueprintCallable, Category=PhysicsControl, Meta=(ReturnDisplayName="Success"))
bool SetControlTargetPoses
(
const FName Name,
const FVector ParentPosition,
const FRotator ParentOrientation,
const FVector ChildPosition,
const FRotator ChildOrientation,
const float VelocityDeltaTime,
const bool bEnableControl
)
Returns true if the control was found and modified, false if not
Parameters
| Name | Remarks |
|---|---|
| Name | The name of the control to update. |
| ParentPosition | The virtual/target parent position |
| ParentOrientation | The virtual/target parent orientation |
| ChildPosition | The virtual/target child position |
| ChildOrientation | The virtual/target child orientation |
| VelocityDeltaTime | If non-zero, the target velocity will be calculated using the current target position. If zero, the target velocity will be set to zero. |
| bEnableControl | Enables the control if it is currently disabled |