i want take a stick to touch balls.
question:
how can i know which one ball is touch?
Code: Select all
if (smgr->getSceneCollisionManager()->getCollisionPoint(line, meta, intersection, tri)
but i don't know stick touch ball is.....
Code: Select all
if (smgr->getSceneCollisionManager()->getCollisionPoint(line, meta, intersection, tri)
Code: Select all
if (smgr->getSceneCollisionManager()->getCollisionPoint(line, selector[0], intersection, tri)
doSomething();
...
if (smgr->getSceneCollisionManager()->getCollisionPoint(line, selector[1], intersection, tri)
doSomethingElse();