The GetFingerSplay
method retrieves the splay value of a specified finger on a VR controller. The splay value represents the degree to which a finger is spread apart from its adjacent fingers, providing a measure of finger separation.
The GetFingerSplay
method retrieves the splay value of a specified finger on a VR controller. The splay value represents the degree to which a finger is spread apart from its adjacent fingers, providing a measure of finger separation.
To use the GetFingerSplay
method, call it on an instance of the VRController
class, passing the index of the finger you want to query. The method returns a float
value representing the splay of the specified finger.
The index
parameter should be an integer corresponding to the finger you are interested in. Typically, the index values are defined as follows:
0
- Thumb1
- Index Finger2
- Middle Finger3
- Ring Finger4
- Little Finger// Example of using GetFingerSplay method VRController vrController = new VRController(); // Get the splay value of the index finger float indexFingerSplay = vrController.GetFingerSplay(1); // Output the splay value // Note: Avoid using Console.WriteLine in Sandbox environment // Instead, use appropriate logging or UI display methods // Example: Log.Info($"Index Finger Splay: {indexFingerSplay}");