소스 검색

Fix orientation of raycast hit

Garrett Johnson 5 년 전
부모
커밋
8655e35541
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      example/index.js

+ 1 - 0
example/index.js

@@ -270,6 +270,7 @@ function animate() {
 		if ( closestHit.face ) {
 
 			const normal = closestHit.face.normal;
+			normal.transformDirection( closestHit.object.matrixWorld );
 			rayIntersect.lookAt(
 				point.x + normal.x,
 				point.y + normal.y,