FingerValue ThumbIndexSplay

robot_2Generated
code_blocksInput

Description

The ThumbIndexSplay field is a member of the Sandbox.VR.FingerValue enumeration. It represents the splaying motion between the thumb and index finger, which is a common gesture in virtual reality applications to indicate a specific hand pose or action.

Usage

Use the ThumbIndexSplay field when you need to detect or simulate the splaying motion between the thumb and index finger in a VR environment. This can be useful for gesture recognition or for controlling virtual objects with hand movements.

Example

// Example of using ThumbIndexSplay in a VR application
VRController controller = new VRController();

// Get the current value of the thumb-index splay
float splayValue = controller.GetFingerValue(FingerValue.ThumbIndexSplay);

// Use the splay value to perform an action
if (splayValue > 0.5f)
{
    // Perform an action when the thumb and index finger are splayed apart
    PerformSplayAction();
}