Richard C Posted October 24, 2016 Share Posted October 24, 2016 Help again please. I am importing objects from Blender made up of 15 or so separate objects/meshes. I need to perform actions on all of them as if as one mesh and separate rotation actions on three of them 3 of them but all 15 should manoeuvre as one - forward/back/side to side. I can use getMeshbyName to 'isolate' the separate objects but my question is: 1. If I group all 15 as one can I still manipulate the separate 3 2. How do I group all 15 together please. Thanks in advance Richard C Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 24, 2016 Share Posted October 24, 2016 Hello Richard, 1. You can simply make all meshes child of a root (and invisible mesh). You can then manipulate them as a whole using the root and still manipulate each of them separately 2. See 1. Quote Link to comment Share on other sites More sharing options...
Richard C Posted October 24, 2016 Author Share Posted October 24, 2016 Thanks Deltakosh. OK understand. Should I make an array of all the meshes and use this as the root or is there an alternative way. Your suggested code would be useful!!! Thanks for all you do. Richard C Quote Link to comment Share on other sites More sharing options...
Wingnut Posted October 24, 2016 Share Posted October 24, 2016 And RC, yes, you can still manipulate the 3-group. Give those 3 mesh... an invisible parent first. Let's call it group3parent. Now you can set the other 12 mesh.parent = masterParent, and then set group3parent.parent = masterParent. Rotate entire group by rotating masterParent. Rotate 3-group by rotating group3parent. Set parent.visibility = .01 and parent.showBoundingBox = true... if you want to display the parents... a little bit. (while you work on the scene). You can maintain an array of meshes (or many arrays) if you wish. We also have a "tags system"... that allows you to do pattern-matching on mesh tags. And also... try everything. Experiment. See which mesh-organizing method you enjoy the most. Hope I'm not butting-in. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Richard C Posted October 24, 2016 Author Share Posted October 24, 2016 Wingnut .......................... thanks - you're not butting in but rather adding considerably to my knowledge. Doesn't matter how old you are 'every day is a day at school' Cheers Wingnut 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.