Sfoglia il codice sorgente

Added normalize to RotationAxis

Chris Ritten 10 anni fa
parent
commit
4b31d92a7a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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);