ShoulderTwistControllerHelper
A class in Root.Township, Alta.Character.
Editor helper for ShoulderTwistController that adds a twist limit to the shoulder bone.
Constructors
| Member | What it is |
|---|
ShoulderTwistControllerHelper() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private bool isSettingTwistLimit | Inspector button that runs SetupTwistLimit. |
private BoneWithTwistLimit twistLimit | Shoulder bone and twist angle to use (65 degrees by default). |
Properties
| Member | What it is |
|---|
Transform Shoulder { set; } | Sets the bone in twistLimit. SetupTwistLimit reads the controller's own shoulder, not this. |
Methods
| Member | What 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: