Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
FRIGEL-'s avatar
FRIGEL-
Honored Guest
4 years ago
Solved

Is there a way to know if the controllers are being tracked using the Quest 2's infrared cameras.

Simply put, is there a way to know if the controllers are being tracked using the Quest 2's infrared cameras.

 

I have tried simply checking if the positions of the controllers change over time. As in theory, this would tell you if they were being tracked. However it seems the Quest 2 will try to interpolate 3d positional movement based on the controller rotation, which is somewhat unhelpful for my application.

  • Anonymous's avatar
    Anonymous
    4 years ago

    If you're using OVRInput this method should work:

    public static bool GetControllerPositionTracked(OVRInput.Controller controllerType)

     If you're using Unity's Legacy XR Input this should provide similar data:

    if (device.TryGetFeatureValue(CommonUsages.isTracked, out bool isTracked)) {

    }

     And if you're using Unity's "new" Input System, there's an "isTracked" action you can add to your Input Actions mapping.

1 Reply

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous

    If you're using OVRInput this method should work:

    public static bool GetControllerPositionTracked(OVRInput.Controller controllerType)

     If you're using Unity's Legacy XR Input this should provide similar data:

    if (device.TryGetFeatureValue(CommonUsages.isTracked, out bool isTracked)) {

    }

     And if you're using Unity's "new" Input System, there's an "isTracked" action you can add to your Input Actions mapping.