Description
The RightShoulder
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 right shoulder in a virtual reality environment. This can be used to identify and manage devices that are specifically intended to track the right shoulder's position and orientation.
Usage
Use the TrackedDeviceRole.RightShoulder
field when you need to specify or check the role of a device that is tracking the right shoulder. This is particularly useful in applications that require precise body tracking, such as VR simulations or games that involve full-body avatars.
Example
// Example of using TrackedDeviceRole.RightShoulder
void AssignDeviceRole(TrackedDevice device)
{
if (device.Role == TrackedDeviceRole.RightShoulder)
{
// Perform operations specific to the right shoulder device
device.Calibrate();
device.SetTrackingMode(TrackingMode.FullBody);
}
}