浏览代码

Added normalize to RotationAxis

Chris Ritten 10 年之前
父节点
当前提交
4b31d92a7a
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 {
         public static RotationAxis(axis: Vector3, angle: number): Quaternion {
+            axis.normalize();
             var result = new Quaternion();
             var result = new Quaternion();
             var sin = Math.sin(angle / 2);
             var sin = Math.sin(angle / 2);