Classes and stuff

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
RiChArD_fLoOd
Posts: 11
Joined: Fri Sep 23, 2005 10:32 pm
Location: UK, England, Stockport

Classes and stuff

Post 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?
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post 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.
Image
CZestmyr
Posts: 72
Joined: Sat Feb 12, 2005 7:11 pm
Location: Czech Republic
Contact:

Post 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.
RiChArD_fLoOd
Posts: 11
Joined: Fri Sep 23, 2005 10:32 pm
Location: UK, England, Stockport

Post by RiChArD_fLoOd »

cheers thanks guys i think it helped me, if i didnt i'll buy a big boo, k thanks
Post Reply