Browse Source

fix invert reference r122->r123

Gregg Tavares 4 years ago
parent
commit
96add5444f

+ 1 - 1
threejs/lessons/ja/threejs-align-html-elements-to-3d.md

@@ -278,7 +278,7 @@ const viewProjection = new THREE.Matrix4();
 // before checking
 camera.updateMatrix();
 camera.updateMatrixWorld();
-camera.matrixWorldInverse.getInverse(camera.matrixWorld);
+camera.matrixWorldInverse.copy(camera.matrixWorld).invert();
 
 ...
 

+ 1 - 1
threejs/lessons/kr/threejs-align-html-elements-to-3d.md

@@ -259,7 +259,7 @@ const viewProjection = new THREE.Matrix4();
 // 좌표 확인 전
 camera.updateMatrix();
 camera.updateMatrixWorld();
-camera.matrixWorldInverse.getInverse(camera.matrixWorld);
+camera.matrixWorldInverse.copy(camera.matrixWorld).invert();
 
 ...
 

+ 1 - 1
threejs/lessons/threejs-align-html-elements-to-3d.md

@@ -285,7 +285,7 @@ const viewProjection = new THREE.Matrix4();
 // before checking
 camera.updateMatrix();
 camera.updateMatrixWorld();
-camera.matrixWorldInverse.getInverse(camera.matrixWorld);
+camera.matrixWorldInverse.copy(camera.matrixWorld).invert();
 
 ...