robot_2Generated
code_blocksInput

Description

The Waist field is a member of the TrackedDeviceRole enumeration within the Sandbox.VR namespace. It represents a virtual reality tracked device role specifically for the waist. This can be used to identify and manage devices that are intended to be worn or tracked at the waist level in a VR environment.

Usage

Use the TrackedDeviceRole.Waist enumeration value when you need to specify or check for a device that is associated with the waist in a VR setup. This is particularly useful in applications where body tracking is required, and you need to differentiate between various body parts or device roles.

Example

// Example of using TrackedDeviceRole.Waist

void CheckDeviceRole(TrackedDeviceRole role)
{
    if (role == TrackedDeviceRole.Waist)
    {
        // Handle waist-specific logic
        // For example, adjust avatar's waist position
    }
}

// Usage
TrackedDeviceRole deviceRole = TrackedDeviceRole.Waist;
CheckDeviceRole(deviceRole);