瀏覽代碼

beginAnimation documentation

Pavel 7 年之前
父節點
當前提交
ab5929f964
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/babylon.node.ts

+ 10 - 1
src/babylon.node.ts

@@ -411,7 +411,16 @@
             return this._ranges[name];
         }
 
-        public beginAnimation(name: string, loop?: boolean, speedRatio?: number, onAnimationEnd?: () => void): Animatable {
+        /**
+         * Will start the animation sequence
+         * @param {string} name - range frame should animation start
+         * @param {boolean} [loop] - should the animation loop
+         * @param {number} [speedRatio] - the speed in which to run the animation
+         * @param {Function} [onAnimationEnd] function to be executed when the animation ended.
+         * Returns {BABYLON.Animatable} the animatable object created for this animation, if range not exists will return null
+         * See BABYLON.Animatable
+         */
+        public beginAnimation(name: string, loop?: boolean, speedRatio?: number, onAnimationEnd?: () => void): Animatable? {
             var range = this.getAnimationRange(name);
 
             if (!range) {