Page 1 of 1

Classes and stuff

Posted: Sat Oct 01, 2005 12:21 am
by RiChArD_fLoOd
hello all, in my game i would like all my objects which are derived from my main OBJ class to be updated every time a function is called to the OBJ class, sorry for my bad explanation, in simple terms does anyone know how the scene manager in irrlicht made all the scene nodes update them selves everystep from the drawAll function?

Posted: Sat Oct 01, 2005 2:50 am
by Spintz
the scene manager is considered the root scene node.

no matter what, an added node is in someway a child of the sceneManager. The sceneManager, just all it's children, and it's children call their children, etc.

Posted: Sat Oct 01, 2005 6:28 pm
by CZestmyr
Yes, it's true, because when you create your own scene node and want it to render, you won't succede, until you set it as a child of an other scene node. I usually call smgr->getRootSceneNode() and set my node as a child of the root node.

Posted: Sun Oct 02, 2005 10:32 am
by RiChArD_fLoOd
cheers thanks guys i think it helped me, if i didnt i'll buy a big boo, k thanks