Raanan Weber 5 gadi atpakaļ
vecāks
revīzija
cd9e563ef8

+ 1 - 5
src/Cameras/XR/features/WebXRHitTest.ts

@@ -98,13 +98,9 @@ export class WebXRHitTest implements WebXRFeature {
                 mat.toggleModelMatrixHandInPlace();
             }
             // if (this.options.coordinatesSpace === Space.WORLD) {
-            if (!this.options.worldParentNode) {
-                // Logger.Warn("Please provide a world parent node to apply world transformation");
-            } else {
+            if (this.options.worldParentNode) {
                 mat.multiplyToRef(this.options.worldParentNode.getWorldMatrix(), mat);
             }
-            // }
-            //return mat;
             return {
                 xrHitResult: result,
                 transformationMatrix: mat

+ 1 - 5
src/Cameras/XR/features/WebXRPlaneDetector.ts

@@ -124,13 +124,9 @@ export class WebXRPlaneDetector implements WebXRFeature {
                 mat.toggleModelMatrixHandInPlace();
             }
             plane.transformationMatrix = mat;
-            //if (this.options.coordinatesSpace === Space.WORLD) {
-            if (!this.options.worldParentNode) {
-                // Logger.Warn("Please provide a world parent node to apply world transformation");
-            } else {
+            if (this.options.worldParentNode) {
                 mat.multiplyToRef(this.options.worldParentNode.getWorldMatrix(), mat);
             }
-            //}
         }
         /*if (!this.options.dontCreatePolygon) {
             let mat;