Forráskód Böngészése

Added normalize to RotationAxis

Chris Ritten 10 éve
szülő
commit
4b31d92a7a
1 módosított fájl, 1 hozzáadás és 0 törlés
  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);