Ahiru Posted August 30, 2015 Share Posted August 30, 2015 If I want to tag some meshes, so I can get them as a group with mesh.getMeshesByTag - what do I have to do? Tried it here, but did not work as expected: http://www.babylonjs-playground.com/#I010C Quote Link to comment Share on other sites More sharing options...
Temechon Posted August 31, 2015 Share Posted August 31, 2015 hello ! Did you read this ? http://doc.babylonjs.com/tutorials/How_to_use_the_Tags_System Quote Link to comment Share on other sites More sharing options...
Ahiru Posted August 31, 2015 Author Share Posted August 31, 2015 Thanks - no, I did not before - exactly what I searched for. But I did not get it to work like stated in the tutorial. - I used scene.getMeshesByTags("box", function (ct) { ct.rotation.x += 0.01;});instead. Now it workes: http://www.babylonjs-playground.com/#I010C#1 Thank you - helped a lot! Is there a way to do it like described in the tutorial? And another point: the links to the typescript codes are dead. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 31, 2015 Share Posted August 31, 2015 If there is a bug in the documentation, Temechon is definitely the right guy to fix it 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.