unreal.AngularDriveLimitViolationResponse¶
- class unreal.AngularDriveLimitViolationResponse¶
Bases:
EnumBaseSpecifies 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.
C++ Source:
Module: Engine
File: ConstraintDrives.h
- CLAMP_EXACT: AngularDriveLimitViolationResponse = Ellipsis¶
Project the drive target onto the joint limits using the exact Chaos 4*atan2 formula. More accurate near the limit boundary but slightly more expensive than ClampLinear.
- Type:
2
- CLAMP_LINEAR: AngularDriveLimitViolationResponse = Ellipsis¶
Project the drive target onto the joint limits using a linear swing-angle approximation. Accurate for small angles; exact for pure Swing1 or pure Swing2 rotations.
- Type:
1
- NONE: AngularDriveLimitViolationResponse = Ellipsis¶
Drive target rotation is left unchanged. The drive and the limit constraint may compete.
- Type:
0
- WIDEN_LIMITS: AngularDriveLimitViolationResponse = Ellipsis¶
Widen the joint’s angular limits to accommodate the drive target instead of clipping the target. Limits are never narrowed below their authored defaults; they are restored each frame when the target moves back inside. Has no effect on locked axes.
- Type:
3