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 SetControlTargetPoses
&40;
const FName Name,
const FVector ParentPosition,
const FRotator ParentOrientation,
const FVector ChildPosition,
const FRotator ChildOrientation,
const float VelocityDeltaTime,
const bool bEnableControl
&41;
Remarks
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. Returns true if the control was found and modified, false if not
Parameters
| Name | Description |
|---|---|
| Name | The name of the control to modify. |
| 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 |