Description
The IndexMiddleSplay
field is a member of the Sandbox.VR.FingerValue
enumeration. It represents the splaying motion between the index and middle fingers. This value is used to determine the degree of separation or spread between these two fingers in a virtual reality environment.
Usage
Use the IndexMiddleSplay
field when you need to access or modify the splaying motion between the index and middle fingers in a VR application. This can be particularly useful for gesture recognition or hand tracking systems where the relative position of fingers is important.
Example
// Example of using FingerValue.IndexMiddleSplay
// Assuming vrController is an instance of VRController
float splayValue = vrController.GetFingerValue(FingerValue.IndexMiddleSplay);
// Use the splayValue to determine the degree of splay between the index and middle fingers
if (splayValue > 0.5f)
{
// Perform an action if the fingers are significantly splayed
}