Jump to content

Accessing Multiple Babylon Animations


amorgan
 Share

Recommended Posts

So in the examples we have:

//Then add the animation object to box1box1.animations.push(animationBox);

which means it is an array, but if I create another animation and push it how do I actually call just one animation to play with beginAnimation()?

 

for example:

//Then add the animation object to box1box1.animations.push(animationBox1);//Add another animation to box1box1.animations.push(animationBox2);//how can I just dobeginAnimation(box.animations[0],...);

Or was it even meant to single out playing one animation if there are more than one attached to the mesh? I can, of course, just overwrite box1.animations[0] with the animation I want, but that seems unnecessary.

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...