Raanan Weber 5 년 전
부모
커밋
cd9e563ef8
2개의 변경된 파일2개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 5
      src/Cameras/XR/features/WebXRHitTest.ts
  2. 1 5
      src/Cameras/XR/features/WebXRPlaneDetector.ts

+ 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;