Jump to content

Grouping objects (but not parenting)?


kriket
 Share

Recommended Posts

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?

 

Link to comment
Share on other sites

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)

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...