robot_2Generated
code_blocksInput

Description

The TrackedDeviceRole.RightHand field is a member of the TrackedDeviceRole enumeration within the Sandbox.VR namespace. It represents the role of a tracked device that is associated with the right hand in a virtual reality environment.

Usage

Use the TrackedDeviceRole.RightHand field to identify or assign a device role specifically for the right hand in VR applications. This can be useful for handling input or tracking data from VR controllers or other devices that are intended to be used with the right hand.

Example

// Example of using TrackedDeviceRole.RightHand

void AssignDeviceRole(VRDevice device)
{
    if (device.Role == TrackedDeviceRole.RightHand)
    {
        // Handle right hand specific logic
        device.PerformAction();
    }
}