浏览代码

Fix wrong value for LookAt

ShiroSmith 5 年之前
父节点
当前提交
72b13659bb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hrt/prefab/fx/LookAt.hx

+ 1 - 0
hrt/prefab/fx/LookAt.hx

@@ -28,6 +28,7 @@ class LookAtObject extends h3d.scene.Object {
 		else {
 			if(getScene() == null || getScene().camera == null) return;
 			lookAtPos.load(getScene().camera.pos);
+			lookAtPos.w = 1;
 		}
 
 		super.calcAbsPos();