瀏覽代碼

Merge pull request #698 from Viromo/master

Added normalize to RotationAxis
David Catuhe 10 年之前
父節點
當前提交
792dcf1b46
共有 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 {
+            axis.normalize();
             var result = new Quaternion();
             var sin = Math.sin(angle / 2);