Explorar o código

normalize in Quaternion.slerp

Mathieu Brédif %!s(int64=7) %!d(string=hai) anos
pai
achega
dbe07203e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/math/Quaternion.js

+ 1 - 1
src/math/Quaternion.js

@@ -543,7 +543,7 @@ Object.assign( Quaternion.prototype, {
 			this._y = s * y + t * this._y;
 			this._z = s * z + t * this._z;
 
-			return this;
+			return this.normalize();
 
 		}