Description
The TrackedDeviceRole.LeftAnkle
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 ankle in a virtual reality environment. This can be used to identify and manage devices that are specifically intended to track the left ankle's position and movement.
Usage
Use the TrackedDeviceRole.LeftAnkle
field when you need to specify or check the role of a VR device that is tracking the left ankle. This is particularly useful in applications that require precise body tracking, such as full-body VR experiences or motion capture systems.
Example
// Example of using TrackedDeviceRole.LeftAnkle
void AssignDeviceRole(VRDevice device)
{
if (device.Role == TrackedDeviceRole.LeftAnkle)
{
// Perform operations specific to the left ankle device
device.Calibrate();
device.StartTracking();
}
}