Description
The TrackedDeviceRole.Head
field is a member of the TrackedDeviceRole
enumeration within the Sandbox.VR
namespace. It represents the head in a virtual reality environment, typically used to identify the role of a VR device that tracks the user's head movements.
Usage
Use the TrackedDeviceRole.Head
field to specify or check if a tracked device is assigned to the head role. This is particularly useful when developing VR applications where you need to differentiate between various tracked devices such as headsets, controllers, and other peripherals.
Example
// Example of using TrackedDeviceRole.Head
// Check if a device is the head device
if (device.Role == TrackedDeviceRole.Head)
{
// Perform actions specific to the head device
// For example, update the camera position based on head tracking
}