소스 검색

center the model

Raanan Weber 5 년 전
부모
커밋
52a2c2389c
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/Cameras/XR/motionController/webXRProfiledMotionController.ts

+ 2 - 3
src/Cameras/XR/motionController/webXRProfiledMotionController.ts

@@ -71,7 +71,7 @@ export class WebXRProfiledMotionController extends WebXRAbstractMotionController
         if (rootMesh) {
             rootMesh.setParent(this.rootMesh);
         }
-        let min = {
+        /*let min = {
             x: 0,
             y: 0,
             z: 0
@@ -107,9 +107,8 @@ export class WebXRProfiledMotionController extends WebXRAbstractMotionController
             }
         });
 
-        console.log(min, max, { x: max.x + min.x, y: max.y + min.y, z: max.z + min.z });
+        console.log(min, max, { x: max.x + min.x, y: max.y + min.y, z: max.z + min.z });*/
         const center = Mesh.Center(this.rootMesh.getChildMeshes());
-        console.log(center);
         this.rootMesh.position.subtractInPlace(center.scaleInPlace(2));
         this.rootMesh.position.z *= -1;