Explorar o código

normalize after initMoveTo

ncannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
20bc9eda3d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 ) {