浏览代码

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,