Jump to content

Getting current frame of animation


Gugis
 Share

Recommended Posts

The problem is that beginAnimation can triggers a lot of animations. Here is the code of this specific function:

            // Local animations            if (target.animations) {                this.stopAnimation(target);                var animatable = new BABYLON.Internals.Animatable(target, from, to, loop, speedRatio, onAnimationEnd);                this._activeAnimatables.push(animatable);            }            // Children animations            if (target.getAnimatables) {                var animatables = target.getAnimatables();                for (var index = 0; index < animatables.length; index++) {                    this.beginAnimation(animatables[index], from, to, loop, speedRatio, onAnimationEnd);                }            }

As you can see a lot of animatable objects are created

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...