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. This enumeration is used to identify and differentiate between various tracked devices based on their intended role or position in the VR setup.
Usage
Use the TrackedDeviceRole.RightHand
field when you need to specify or check the role of a VR device that is intended to be used as the right hand. This can be useful in scenarios where you need to handle input or interactions specifically from the right hand device.
Example
// Example of using TrackedDeviceRole.RightHand
void HandleDeviceRole(TrackedDeviceRole role)
{
if (role == TrackedDeviceRole.RightHand)
{
// Handle input or actions specific to the right hand
// For example, trigger a specific animation or interaction
}
}