Skip to main content
New Participant
July 30, 2021
Solved

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

  • July 30, 2021
  • 1 reply
  • 3219 views

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.

This topic has been closed for replies.
Best answer by

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

Answer
July 30, 2021

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.