Description
The TrackedDeviceRole.LeftShoulder
field is a member of the TrackedDeviceRole
enumeration within the Sandbox.VR
namespace. It represents a virtual reality tracked device role specifically for the left shoulder. This can be used to identify and manage VR devices that are intended to be attached or associated with the left shoulder of a user.
Usage
Use the TrackedDeviceRole.LeftShoulder
field when you need to specify or check the role of a VR device that is associated with the left shoulder. This is particularly useful in applications where precise body tracking is required, such as in VR simulations or games that involve full-body tracking.
Example
// Example of using TrackedDeviceRole.LeftShoulder
void AssignDeviceRole(VRDevice device)
{
if (device.Role == TrackedDeviceRole.LeftShoulder)
{
// Perform actions specific to the left shoulder device
device.AttachToBodyPart(BodyPart.LeftShoulder);
}
}