Fix UnityXR position when humanoid is not on 0,0,0
This commit is contained in:
parent
8a3a2be643
commit
a7bdaa081f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user