excelsior Posted May 15, 2016 Share Posted May 15, 2016 It sound like an easy question, but i didn't find an answer to that. What is the way if for example i ve got an animation and i want to start it on different meshe at the same time. Quote Link to comment Share on other sites More sharing options...
Dal Posted May 15, 2016 Share Posted May 15, 2016 If they are exactly the same model and exactly the same animation, you can use instancing to achieve that I believe. Else, just duplicate the code... copy and paste it and start it on one mesh on one line and the next mesh on the next line... the time difference between the lines will be so tiny that it won't matter. Quote Link to comment Share on other sites More sharing options...
excelsior Posted May 15, 2016 Author Share Posted May 15, 2016 those are not the same model, but the same animation. Okay i was wondering if there was a better more elegant solution than to loop on my mesh to create and apply the same animation. Thanks though Quote Link to comment Share on other sites More sharing options...
ozRocker Posted May 16, 2016 Share Posted May 16, 2016 If you use instances you only have to start the animation on one mesh and all of them will start http://www.babylonjs-playground.com/#1GEYSB#11 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.