Skip to main content

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.

Constructors​

MemberWhat it is
HandGripConfiguration()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

7 private and internal fields
MemberWhat it is
private HandGripConfiguration.Finger[] fingersBacking field for Fingers.
private float gripDurationBacking field for GripDuration.
private HandGripConfiguration.RotationSnapshots leftRotationsBacking field for LeftRotations.
private HandGripConfiguration.RotationSnapshots rightRotationsBacking field for RightRotations.
private AnimationCurve splaidCurveBacking field for SplaidCurve.
private ThumbConfiguration[] thumbConfigurationsBacking field for ThumbConfigurations.
private float ungripDurationBacking field for UngripDuration.

Properties​

MemberWhat 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: