Skip to main content

TwistLimit

A class in Root.Township, the global namespace.

A FinalIK rotation limit that only caps twist around the limit's axis.

Constructors​

MemberWhat it is
TwistLimit()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private float twistLimitMaximum twist in degrees, 0 to 180. Backing field for TwistLimitAngle.

Properties​

MemberWhat it is
float TwistLimitAngle { get; set; }Gets or sets the twist limit in degrees.

Methods​

MemberWhat it is
protected override Quaternion LimitRotation(Quaternion rotation)Applies RotationLimit.LimitTwist with the axis, secondary axis and twistLimit.