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 CheckDeviceRole(TrackedDeviceRole role)
{
if (role == TrackedDeviceRole.LeftKnee)
{
// Handle the left knee tracking logic
// For example, update the avatar's left knee position
}
}