Navigation
API > API/Runtime > API/Runtime/Engine
Specifies how the constraint responds when the angular drive target would violate the joint's angular limits. Without a response, the drive and the limit constraint compete, producing spurious torques.
| Name | EAngularDriveLimitViolationResponse |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintDrives.h |
| Include Path | #include "PhysicsEngine/ConstraintDrives.h" |
Syntax
enum EAngularDriveLimitViolationResponse
{
None = 0,
ClampLinear = 1,
ClampExact = 2,
WidenLimits = 3,
}
Values
| Name | Remarks |
|---|---|
| None | Drive target rotation is left unchanged. The drive and the limit constraint may compete. |
| ClampLinear | Project the drive target onto the joint limits using a linear swing-angle approximation. |
| ClampExact | Project the drive target onto the joint limits using the exact Chaos 4*atan2 formula. |
| WidenLimits | Widen the joint's angular limits to accommodate the drive target instead of clipping the target. |