Jump to content

Scene Hirearchy


Recommended Posts

Does Babylon.js have support for Scene hirearchies where you can create Parent and then attach Children to it so that children will be able to inherit some properties from their parent like position and rotation?

I'm very new to Babylon.js and right now trying to create a minimalist type of game using Babylon.js in which Camera always moves forward while there is a cube which has to follow the camera as well.

Can I make Camera a Parent object while attaching this Cube as its Child so that while Camera is moving the Cube will move too because Cube inherits Camera's position so Cube's position will update accordingly?

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.

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.


  • Recently Browsing   0 members

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