TwistRelaxerController
A class in Root.Township, Alta.Character.
Character rig component that runs the forearm's TwistRelaxers each fixed update, scaling their weight by how far the hand is twisted against the elbow.
- Listed in Players and characters
- Inherits or implements
CharacterComponentController - Derived types
TwistRelaxerControllerHelper
Constructors
| Member | What it is |
|---|---|
TwistRelaxerController() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private AnimationCurve angleToWeightMultiplier | Curve from hand-to-elbow angle (degrees) to a weight multiplier. |
private Transform elbow | Backing field for Elbow. |
private Transform hand | Backing field for Hand. |
private bool isChangingWeights | When false, relaxers keep their own weight and only Relax is called. |
private List<TwistRelaxer> relaxers | Backing field for Relaxers. |
private Dictionary<TwistRelaxer, float> relaxerStartingWeights | Each relaxer's weight at Start. |
Properties
Methods
| Member | What it is |
|---|---|
override void FixedUpdateCharacterComponent() | Scales each relaxer's weight by the hand-to-elbow angle curve (if enabled) and relaxes it. |
2 private and internal methods
Used in
Members of other types that take, return or hold a TwistRelaxerController: