Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FConstraintInstance
Description
Widens this constraint's angular limits so that TargetRelRot sits inside them without clipping. DefaultConstraint provides the authored minimum values; limits are never narrowed below those defaults. WidenMarginDegrees is added when the target exceeds a default so the drive target sits clearly inside the constraint boundary. Returns true if any axis was left wider than its authored default (i.e. widening was needed), false if all axes are at their defaults or the axis is locked/free.
| Name | WidenLimitsForDriveTarget |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ConstraintInstance.h |
| Include Path | #include "PhysicsEngine/ConstraintInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/ConstraintInstance.cpp |
bool WidenLimitsForDriveTarget
(
const FQuat & TargetRelRot,
const FConstraintInstance & DefaultConstraint,
float WidenMarginDegrees
)