The following problem has been bothering me now for hours and I can't find out what the problem is.
The situation is: at startup I load an irr-scene putting all main objects into a meta triangle selector. Meta - so I can add and remove objects being subject to hit-testing.
As the very last scene node the terrain gets loaded from the irr scene for which a TerrainTriangleSelector is created (as in the tuts):
Code: Select all
case scene::ESNT_TERRAIN:
tempSelector = sManager->createTerrainTriangleSelector((scene::ITerrainSceneNode*)node);
break;
This is what's happening for new objects:
Code: Select all
g->selector = dev->getSceneManager()->createTriangleSelectorFromBoundingBox(g->model);
this->selector->addTriangleSelector(g->selector);
Any hints greatly appreciated!
Cheers,
p.