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 SetControlTargetPositionAndOrientation
&40;
const FName Name,
const FVector Position,
const FRotator Orientation,
const float VelocityDeltaTime,
const bool bEnableControl,
const bool bApplyControlPointToTarget
&41;
Remarks
Modifies an existing control target - i.e. what it is driving towards, relative to the parent object Returns true if the control was found and modified, false if not
Parameters
| Name | Description |
|---|---|
| Name | The name of the control to modify. |
| Position | The new position target for the control |
| Orientation | The new orientation target for the control |
| 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 |
| bApplyControlPointToTarget | If true, then the target position/orientation is treated as a "virtual" object, where the system attempts to move the object to match the pose of this "virtual" object that has been placed at the target transform. Use this when you want to specify the target transform for the object as a whole. If false, then the target transform is used as is, and the system drives the control point towards this transform. |