The TrackedDeviceRole.LeftHand
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 left hand in a virtual reality environment.
The TrackedDeviceRole.LeftHand
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 left hand in a virtual reality environment.
Use the TrackedDeviceRole.LeftHand
field to specify or check if a tracked device is assigned to the left hand. This is particularly useful in VR applications where you need to differentiate between devices used for different body parts.
// Example of using TrackedDeviceRole.LeftHand // Check if a device is assigned to the left hand if (device.Role == TrackedDeviceRole.LeftHand) { // Perform actions specific to the left hand HandleLeftHandInput(device); } // Assign a device to the left hand VRDevice device = new VRDevice(); device.Role = TrackedDeviceRole.LeftHand;