Przeglądaj źródła

Merge pull request #698 from Viromo/master

Added normalize to RotationAxis
David Catuhe 10 lat temu
rodzic
commit
792dcf1b46
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/Math/babylon.math.ts

+ 1 - 0
src/Math/babylon.math.ts

@@ -1719,6 +1719,7 @@
         }
 
         public static RotationAxis(axis: Vector3, angle: number): Quaternion {
+            axis.normalize();
             var result = new Quaternion();
             var sin = Math.sin(angle / 2);