Scripting

Parameters

GameObject touchedObject The object when it is touched by the hand.
GameObject grabbedObject The object when it is grabbed by the hand.
Handle grabbedHandle The Handle when it is grabbed by the hand.
Rigidbody handRigidbody The Rigidbody of the hand.
HandTarget otherHand The other Hand Target.

Methods

float GetFingerCurl(Finger fingerID)

Gets the curl value of an individual finger or thumb.

void SetFingerCurl(Finger finger, float curl)

Sets curl value of an individual finger or thumb.

void AddFingerCurl(Finger finger, float curl)

Adds a curl value to the current curl value of a finger or thumb.

SetFingerGroupCurl(FingerGroup group, float curl)

Sets the curl value for a group of fingers simultaneously.

void SetPose(Pose pose, float weight = 1)

Sets the pose of the hand, optionally using a weight for the pose. The existing pose will be updated accordingly. See Hand Poses.

void Vibrate(float strength)

Vibrates the controller if a controller with vibration support is active.