[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

C.1.20 Changes for hierarchical objects

Meshes and lights can now properly be used as hierarchical objects with the same API. Here is how it works: meshes and lights implement the new iSceneNode interface. You can do QuerySceneNode() to get the scene object from the mesh, light, or camera without having to do scfQueryInterface<>. To make some object a child of another you simply do:

 
object_child->QuerySceneNode ()->SetParent (
	    	  object_parent->QuerySceneNode ());

To remove some object from a parent you do:

 
object_child->QuerySceneNode ()->SetParent (0);

You can get the children by calling iSceneNode->GetChildren().

The following methods have been removed:


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated using texi2html 1.76.