[SOLVED] Picking but not correctly...
Posted: Thu Mar 05, 2009 2:46 pm
Hello,
I try to pick an object like this everytime I click on it :
I set my breakpoint on the printf, and the debugger break here ONLY when I pick very near the center of my mesh... If I try to pick an edge and a little closer, it doesn't pick...
How can I pick on every point of a mesh please ?
I try to pick an object like this everytime I click on it :
Code: Select all
ISceneNode *sel = cynScene->getSceneCollisionManager()->getSceneNodeFromScreenCoordinatesBB(cynDevice->getCursorControl()->getPosition(),0);
if (sel && sel != planeNode && sel != skybox && sel != cynCamera && sel->getID() == OID_OBJECT) {
printf("ITSOK\n");
}
How can I pick on every point of a mesh please ?