book_4_sparkGenerated
code_blocksInput

Description

The TrackedDeviceRole.LeftElbow field is a member of the TrackedDeviceRole enumeration within the Sandbox.VR namespace. It represents the role of a tracked device that corresponds to the left elbow in a virtual reality environment. This can be used to identify and manage devices that are specifically assigned to track the left elbow's position and orientation.

Usage

Use the TrackedDeviceRole.LeftElbow field when you need to specify or check the role of a device that is intended to track the left elbow. This is particularly useful in applications that require precise body tracking, such as VR simulations or games that involve full-body motion capture.

Example

// Example of using TrackedDeviceRole.LeftElbow

void AssignDeviceRole(VRDevice device)
{
    if (device.Role == TrackedDeviceRole.LeftElbow)
    {
        // Perform operations specific to the left elbow device
        device.Calibrate();
        device.StartTracking();
    }
}