Art Vandelay Posted August 4, 2017 Share Posted August 4, 2017 Hi everyone, I have an obj file of an object composed of several meshes. When I load this file using the object file loader and try to drag it (as in the drag and drop tutorial in the playground) only one of the meshes is selected. What is the correct way to make sure the object is selected? Thanks! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 4, 2017 Share Posted August 4, 2017 hello what about creating a dummy parent for all meshes and manipulating it? Quote Link to comment Share on other sites More sharing options...
Art Vandelay Posted August 5, 2017 Author Share Posted August 5, 2017 Thanks for the reply. Just to clarify, is there a special way to do this in babylonjs? Quote Link to comment Share on other sites More sharing options...
Temechon Posted August 5, 2017 Share Posted August 5, 2017 let parent = new BABYLON.Mesh('parent', scene); object1.parent = parent; object2.parent = parent; parent.position.x = 2; // Object1 and object2 will have their x +=2 Quote Link to comment Share on other sites More sharing options...
Art Vandelay Posted August 5, 2017 Author Share Posted August 5, 2017 Thanks! 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.