Browse Source

normalize after initMoveTo

ncannasse 11 years ago
parent
commit
20bc9eda3d
1 changed files with 1 additions and 0 deletions
  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 ) {