kriket Posted January 19, 2016 Share Posted January 19, 2016 I want to group objects together by adding them to a group but I dont want to parent them since I want to move each child separately. In three.js this can be done with var levelGroup_1 = new THREE.Group(); levelGroup_1.children.forEach(function(item) {}; How can this be achived in babylon? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 19, 2016 Share Posted January 19, 2016 Hello (there is a question sub folder:), what do you want to do with this group then? (This will help me answer :)) kriket 1 Quote Link to comment Share on other sites More sharing options...
kriket Posted January 19, 2016 Author Share Posted January 19, 2016 srry about that. My first time here in babylon forum. I want to spawn the objects in this group at random distance apart from each other, then reposition them to various random positions throughout the level, in an infinite game. So, I want to position, scale, move/translate the objects independent of parent (although i never move the parent itself so maybe normal parenting ought to be enuff. I will try but just wanted to know of there was any other grouping mechanism other than parenting) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 19, 2016 Share Posted January 19, 2016 I agree, as you won't move the parent, parenting is just fine kriket 1 Quote Link to comment Share on other sites More sharing options...
kriket Posted January 19, 2016 Author Share Posted January 19, 2016 thanks David! GameMonetize 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.