Browse Source

Added normalize to RotationAxis

Chris Ritten 10 năm trước cách đây
mục cha
commit
4b31d92a7a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);