Description
The TrackedDeviceRole.LeftKnee
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 left knee in a virtual reality environment. This can be used to identify and manage devices that are specifically tracking the left knee's position and movement.
Usage
Use the TrackedDeviceRole.LeftKnee
field when you need to specify or check the role of a device that is tracking the left knee. This is particularly useful in applications that require precise body tracking, such as full-body VR experiences or motion capture systems.
Example
// Example of using TrackedDeviceRole.LeftKnee
void TrackDeviceRoleExample()
{
TrackedDeviceRole deviceRole = TrackedDeviceRole.LeftKnee;
if (deviceRole == TrackedDeviceRole.LeftKnee)
{
// Perform actions specific to the left knee tracking
// For example, adjust the avatar's knee position in the VR environment
}
}