Code: Select all
// The Mesh
room = smgr->addMeshSceneNode(tangentMesh,NULL,10);
core::vector3df cursor = device->getCursorControl()->getPosition();
scene::ISceneNode* selectedMesh;
selectedMesh = smgr->getSceneCollisionManager()->getSceneNodeFromScreenCoordinatesBB(coursor,10);
But there are also other Nodes in the scene, too.
And the getSceneNodeFromScreenCoordinatesBB() returns also the other Nodes,too, although these other Nodes have different ID's.
Why is the function returning these, too?