Jump to content

Animation currentFrame


Recommended Posts


Excuse if this question is silly but I am noob in BJS!

How can I evaluate when an animation has reached last frame (100) or first frame (0) if it is played backwards?


Link to comment
Share on other sites

Hello David,

Thanks the help!

Please look at my code in Playground http://www.babylonjs-playground.com/#PTUGJ2#2 

I am trying to do "Box1" follow a path between the box's centers! if there are 2 ways it choose the one the "Box1" is pointing. Actually it works if you go from "Box2" to any other, but when you came back, using ";" key, it fail! Do you know why?

Thanks in advance!

P.S.: the orbit cam is for help viewing 

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.

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.


  • Recently Browsing   0 members

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