Description
The TrackedDeviceType.Tracker
field is part of the TrackedDeviceType
enumeration within the Sandbox.VR
namespace. It represents a generic tracker device used in virtual reality environments. These trackers are typically used to track the position and orientation of objects or body parts in a VR setup, providing additional input and interaction capabilities beyond standard VR controllers and headsets.
Usage
Use the TrackedDeviceType.Tracker
field when you need to identify or handle generic tracker devices in your VR application. This can be useful for applications that require precise tracking of additional objects or body parts, such as full-body tracking or custom input devices.
Example
// Example of using TrackedDeviceType.Tracker
void HandleTrackedDevice(TrackedDeviceType deviceType)
{
switch (deviceType)
{
case TrackedDeviceType.Hmd:
// Handle head-mounted display
break;
case TrackedDeviceType.Controller:
// Handle VR controller
break;
case TrackedDeviceType.Tracker:
// Handle generic tracker
Console.WriteLine("Tracker detected.");
break;
case TrackedDeviceType.BaseStation:
// Handle base station
break;
case TrackedDeviceType.Redirect:
// Handle redirect device
break;
default:
Console.WriteLine("Unknown device type.");
break;
}
}