Hi,
by accident i discovered, that the RootSceneNode ( ...getRootSceneNode() ) seems to be a "real" node which can be moved, rotated and so on
( don't laugh here, because this is not self-evident ).
My question: can this "feature" be used for something ( i am still thinking about the problem of moving the world around the camera )?
Question about the RootSceneNode
Re: Question about the RootSceneNode
Moving, rotating or scaling the root scene node? just as what it looks like, it will move, rotate, and or scale the node and and all its children, thus any scene node pending from it will be moved, scaled and rotated. It is an inherited feature from the ISceneNode interface that keeps the programming uniform, so the rendering starts on the root node, and iterates through all the children to render all of them. Obviously, if there is a scene node which isn't bound to the root node, direct or indirectly, it won't be rendered unless you tell it to specifically.
By the way, if that blows your mind, maybe you want to take a peek to what does actually return "getRootSceneNode()" Hint, it is a "this" pointer, but what does that pointer point at?
By the way, if that blows your mind, maybe you want to take a peek to what does actually return "getRootSceneNode()" Hint, it is a "this" pointer, but what does that pointer point at?
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Question about the RootSceneNode
Due to multiple inheritance i assume ISceneNode.
Re: Question about the RootSceneNode
I think he meant, the scene manager itself.