object rotation help
object rotation help
Hello all. Could some one point me in the right direction. Here is what i want to achieve. I have 3 cube objects loaded in my scene. The middle is my first cube node which is the parent the other 2 cube nodes is positioned 1 on the left and the other on the right side of the parent. When i rotate or move the parent node I would like the other 2 nodes to follow the parent node's angle and position but keep it position along side the parent. Something like a turret. Is there a tech term for this. I tried the forum but I don't know what to search for. Thank you in advance
Those two cubes have to be child of your cube in the middle - the parent.
Use addChild(ISceneNode* child) from ISceneNode to attach those two child cubes to the parent cube.
http://irrlicht.sourceforge.net/docu/cl ... 5225350970
Use addChild(ISceneNode* child) from ISceneNode to attach those two child cubes to the parent cube.
http://irrlicht.sourceforge.net/docu/cl ... 5225350970