From a7bdaa081fea10fb059267404519f454adceb0c3 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 23 Mar 2022 09:09:26 +0100 Subject: [PATCH] Fix UnityXR position when humanoid is not on 0,0,0 --- Runtime/HumanoidFree/Scripts/Extensions/HumanoidTracker.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/HumanoidFree/Scripts/Extensions/HumanoidTracker.cs b/Runtime/HumanoidFree/Scripts/Extensions/HumanoidTracker.cs index 4788b3b..a8136fa 100644 --- a/Runtime/HumanoidFree/Scripts/Extensions/HumanoidTracker.cs +++ b/Runtime/HumanoidFree/Scripts/Extensions/HumanoidTracker.cs @@ -61,9 +61,9 @@ namespace Passer.Humanoid { if (trackerComponent == null) { Transform realWorld = this.humanoid.realWorld; - Vector3 position = realWorld.TransformPoint(localPosition); - Quaternion rotation = realWorld.rotation * localRotation; - trackerComponent = getTracker(realWorld, position, rotation); + //Vector3 position = realWorld.TransformPoint(localPosition); + //Quaternion rotation = realWorld.rotation * localRotation; + trackerComponent = getTracker(realWorld, localPosition, localRotation); } if (trackerComponent == null) return;