Skip to main content

ShoulderTwistControllerHelper

A class in Root.Township, Alta.Character.

Editor helper for ShoulderTwistController that adds a twist limit to the shoulder bone.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private bool isSettingTwistLimitInspector button that runs SetupTwistLimit.
private BoneWithTwistLimit twistLimitShoulder bone and twist angle to use (65 degrees by default).

Properties​

MemberWhat it is
Transform Shoulder { set; }Sets the bone in twistLimit. SetupTwistLimit reads the controller's own shoulder, not this.

Methods​

MemberWhat it is
void SetupTwistLimit()Adds or gets a TwistLimit on the controller's shoulder, sets its axis and angle, and gives it to the controller.
protected override void OnValidate()Runs SetupTwistLimit when the inspector button is pressed.

Used in​

Members of other types that take, return or hold a ShoulderTwistControllerHelper: