Ver código fonte

Merge pull request #4466 from dad72/patch-7

Update babylon.math.ts
David Catuhe 7 anos atrás
pai
commit
77b9023236
1 arquivos alterados com 7 adições e 0 exclusões
  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
          */