โœŠHand Input

Hand Input

Manages the controller input for hand grab/release triggers and the squeeze/unsqueeze events

Where to find this component in the player hierarchy

The base hand controller link class is looking for four inputs:

Grab Axis determines which input axis (float) the Hand uses for grabbing and finger pose input

Squeeze Axis determines which input axis (float) the Hand uses for squeezing axis and input

Grab Button/Action determines which input value (bool) the Hand uses for triggering the hand.Grab() and hand.Release() functions

Squeeze Button/Action determines which input value (bool) the hand uses for triggering the hand.Squeeze() hand.Unsqueeze(), grabbable.OnSqueeze / grabbable.Unsqueeze events

The hands also have some functions to return these input values without requiring a reference directly to the input system

hand.OnTriggerGrab will always called when the grab button is pressed

hand.GetTriggerAxis will return the grab axis float that the hand controller link is sending to the hand from the input system

hand.GetSqueezeAxis will return the squeeze axis float that the hand controller link is sending to the hand from the input system

Last updated