From 90b4c469887640939c964e9ecd02a2a7b8134e10 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 21 Feb 2024 10:38:46 +0100 Subject: [PATCH] Fix Quest both hands get tracking state when only one is being tracked --- .../Scripts/Extensions/Oculus/OculusHandSkeleton.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/HumanoidControl/Scripts/Extensions/Oculus/OculusHandSkeleton.cs b/Runtime/HumanoidControl/Scripts/Extensions/Oculus/OculusHandSkeleton.cs index 28ce1e7..55d4415 100644 --- a/Runtime/HumanoidControl/Scripts/Extensions/Oculus/OculusHandSkeleton.cs +++ b/Runtime/HumanoidControl/Scripts/Extensions/Oculus/OculusHandSkeleton.cs @@ -86,7 +86,7 @@ namespace Passer.Tracking { } if (OculusDevice.GetHandState(OculusDevice.Step.Render, isLeft ? OculusDevice.Hand.HandLeft : OculusDevice.Hand.HandRight, ref handState)) { - if (handState.Status == 0) { + if ((handState.Status & OculusDevice.HandStatus.HandTracked) == 0) { status = Tracker.Status.Present; DisableRenderer(); return;