Browse Source

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

Sebastien Vandenberghe 7 năm trước cách đây
mục cha
commit
21f0278b02
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      src/Math/babylon.math.ts

+ 7 - 0
src/Math/babylon.math.ts

@@ -2095,6 +2095,13 @@
             return new Vector3(0.0, 1.0, 0.0);
         }
         /**
+         * Returns a new Vector3 set to (0.0, -1.0, 0.0)
+         * @returns a new down Vector3
+         */
+        public static Down(): Vector3 {
+            return new Vector3(0.0, -1.0, 0.0);
+        }
+        /**
          * Returns a new Vector3 set to (0.0, 0.0, 1.0)
          * @returns a new forward Vector3
          */