浏览代码

normalize after initMoveTo

ncannasse 11 年之前
父节点
当前提交
20bc9eda3d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h3d/Quat.hx

+ 1 - 0
h3d/Quat.hx

@@ -52,6 +52,7 @@ class Quat {
 		y = from.z * hx - from.x * hz;
 		z = from.x * hy - from.y * hx;
 		w = from.x * hx + from.y * hy + from.z * hz;
+		normalize();
 	}
 	
 	public function initDirection( dir : Vector ) {