KnisterPeter Posted February 11, 2015 Share Posted February 11, 2015 Hi there, I'm trying to build a DAG consisting of Nodes and Meshes. I would like to use a DAG, so I do not have to update the position of meshes which should be seen as one on each of the meshes.I thought the BABYLON.Node is exactly for this use case when setting the 'mesh.parent = node'.But after connecting node and mesh and updating the node.position the meshes stay in their original position. Is the node.position/mesh.position not connected through a parent->child relationship? CheersMarkus Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 11, 2015 Share Posted February 11, 2015 Hi, I am not sure what a DAG is :-) But, the parent-child relations is exactly what you are looking for. Not sure why it is not working with a node object, try doing that with a mesh without vertices . A simple demo - http://www.babylonjs-playground.com/#2JMT4P Quote Link to comment Share on other sites More sharing options...
KnisterPeter Posted February 11, 2015 Author Share Posted February 11, 2015 A DAG is a directed acyclic graph. In other words a render tree without cycles/loops in it.I've already found that its working with a mesh without geometry. But thanks for your help anyway. 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.