HandGripConfiguration
A class in Root.Township, Alta.Character.
Asset that sets up hand gripping: the fingers and their joints, grip timing, thumb positions and the stored hand poses for each hand.
- Listed in Players and characters
- Inherits or implements
ScriptableObject - Nested types
Finger,RotationSnapshots - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
HandGripConfiguration() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
7 private and internal fields
| Member | What it is |
|---|---|
private HandGripConfiguration.Finger[] fingers | Backing field for Fingers. |
private float gripDuration | Backing field for GripDuration. |
private HandGripConfiguration.RotationSnapshots leftRotations | Backing field for LeftRotations. |
private HandGripConfiguration.RotationSnapshots rightRotations | Backing field for RightRotations. |
private AnimationCurve splaidCurve | Backing field for SplaidCurve. |
private ThumbConfiguration[] thumbConfigurations | Backing field for ThumbConfigurations. |
private float ungripDuration | Backing field for UngripDuration. |
Properties
| Member | What it is |
|---|---|
HandGripConfiguration.Finger[] Fingers { get; } | Each finger's name, joints and skeletal input correction curve. |
float GripDuration { get; } | Seconds to close the hand into a grip (default 0.1). |
HandGripConfiguration.RotationSnapshots LeftRotations { get; } | Default, open, splayed and closed poses for the left hand. |
HandGripConfiguration.RotationSnapshots RightRotations { get; } | Default, open, splayed and closed poses for the right hand. |
AnimationCurve SplaidCurve { get; } | Curve from total finger curl to how splayed the fingers are. |
ThumbConfiguration[] ThumbConfigurations { get; } | Thumb setup for each ThumbPosition, indexed by the enum. |
float UngripDuration { get; } | Seconds to open the hand when letting go (default 0.1). |
Used in
Members of other types that take, return or hold a HandGripConfiguration: