Accessing the SceneNode

oracle1124

21-12-2007 00:03:26

Hi all,

How do you access the scene node for paged geometry? I am trying to get some physics on the terrain, but all I am missing is the scene node.

I did try SceneMgr->getSceneNode("Terrain") but the program crashed. Is this the right way? Or is there a better way?

Thanks

JohnJ

21-12-2007 17:25:58

How do you access the scene node for paged geometry?
If by "scene node for paged geometry" you mean the scene node under which all PagedGeometry geometry is rendered, you can access this through PagedGeometry::getSceneNode() (although this feature is only available in the CVS version).

I am trying to get some physics on the terrain, but all I am missing is the scene node.

I did try SceneMgr->getSceneNode("Terrain") but the program crashed. Is this the right way? Or is there a better way?

That doesn't make sense. PagedGeometry has nothing to do with terrain. What is it you're trying to accomplish?