Navigation
API > API/Plugins > API/Plugins/PhysicsControl > API/Plugins/PhysicsControl/UPhysicsControlComponent
Description
Sets the angular drive limit violation response on the live physics asset constraint for each control in the set. This controls how the drive target rotation is adjusted when it would violate the joint's angular limits, preventing the drive and the limit constraint from competing. Only has an effect when the control is using a skeletal mesh with a physics asset constraint.
| Name | SetControlsInSetDriveLimitViolationResponse |
| Type | function |
| Header File | /Engine/Plugins/Animation/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlComponent.h |
| Include Path | #include "PhysicsControlComponent.h" |
| Source | /Engine/Plugins/Animation/PhysicsControl/Source/PhysicsControl/Private/PhysicsControlComponent.cpp |
UFUNCTION (BlueprintCallable, Category=PhysicsControl)
bool SetControlsInSetDriveLimitViolationResponse
(
const FName Set,
const EAngularDriveLimitViolationResponse Response
)
Parameters
| Name | Remarks |
|---|---|
| Set | The set of controls to update. |
| Response | The response to apply when the drive target violates a joint limit. |