Hi
I would like to know if there is a way to make a connection between a set of scene nodes(cubes) to a specific main scene node(cube) so when the main scene node will change its positioning\rotation all the other scene nodes will change their own posisioning/rotation also relatively to its poisitioning/rotation state?
for example in case one would like to rotate a set of cubes around a center scene node cube(0,0) shall he build a radius and angle for each cube and then change the angle for all cubes to have a cubes rotation around the center point(0,0)?
Is there a better way to do it?
Thanks
Scene nodes maneuvering
You can set parent-child relationships. All childs are rotated, moved, scaled by their parents in addition to their own transformations.
Use either addChild or setParent to do that. See documentation: http://irrlicht.sourceforge.net/docu/cl ... _node.html
Use either addChild or setParent to do that. See documentation: http://irrlicht.sourceforge.net/docu/cl ... _node.html
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm