OMAR Posted April 8, 2016 Share Posted April 8, 2016 So I've checked the docs here: http://doc.babylonjs.com/tutorials/Animations This is all cool and stuff, but I was wondering whether there could be a way of calling specific animation from the animations list of mesh? Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 8, 2016 Share Posted April 8, 2016 Hello Omar, what do you mean by specific? You can use scene.beginAnimation and specify start and end keys Quote Link to comment Share on other sites More sharing options...
OMAR Posted April 9, 2016 Author Share Posted April 9, 2016 For example here we have horizontal and vertical animations: http://www.babylonjs-playground.com/#S5BLD#1 When I call scene.beginAnimation it starts all the animations in the animations list of box, however I was wondering if there was a way of calling only one of the animations? Quote Link to comment Share on other sites More sharing options...
Temechon Posted April 10, 2016 Share Posted April 10, 2016 You should have only one animation, and call it with the correct frames : http://www.babylonjs-playground.com/#S5BLD#2 It's the same behaviour as animated character for example : only one timeline, with several animations defined by different frames. OMAR 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.