Skip to main content

HandSettings

A class in Root.Township, the global namespace.

Settings asset for player hands, read by Hand from the player controller's settings.

Constructors​

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

Fields​

5 private and internal fields
MemberWhat it is
private float armLengthArm reach (default 0.3). The hand joints clamp the held point to this distance from the shoulder.
private bool isAlwaysRenderingPickupAtIKHandDefault for Hand.IsAlwaysRenderingPickupAtIKHand, copied when the hand is set up. On by default.
private bool isDebuggingBacking field for IsDebugging.
private bool isFixingIKHandToPickupsWhen on, the hand calls Detach when an interaction ends. Off by default.
private bool isMovingCenterOfMassToGripPointWhen on, grabbing an item moves its centre of mass to the grip point and letting go resets it. On by default.

Properties​

MemberWhat it is
float ArmLength { get; }Arm length (default 0.3). Limits how far a held item's joint target can be from the shoulder.
bool IsAlwaysRenderingPickupAtIKHand { get; }Draws held items at the IK hand.
bool IsDebugging { get; }Debug flag.
bool IsFixingIKHandToPickups { get; }Fixes the IK hand to held items.
bool IsMovingCenterOfMassToGripPoint { get; }Moves a held item's centre of mass to the grip point.

Used in​

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