Description
The TrackedDeviceRole.LeftShoulder
field is a member of the TrackedDeviceRole
enumeration within the Sandbox.VR
namespace. It represents the left shoulder in a virtual reality environment, allowing developers to identify and manage VR devices or components associated with the left shoulder.
Usage
Use the TrackedDeviceRole.LeftShoulder
field when you need to specify or check the role of a VR device that corresponds to the left shoulder. This can be useful in applications that require precise tracking and interaction with the user's body parts in a virtual space.
Example
// Example of using TrackedDeviceRole.LeftShoulder
void AssignDeviceRole(VRDevice device)
{
if (device.Role == TrackedDeviceRole.LeftShoulder)
{
// Perform actions specific to the left shoulder device
device.ConfigureForLeftShoulder();
}
}