For example on a chess board mesh, i find the current collided face have index 32, so i can process it to find the case on the chessboard.
What the method to implement that feature?
Code: Select all
core::line3d<f32> raytrace = collMan->getRayFromScreenCoordinates(device->getCursorControl()->getPosition(), cam);
core::vector3df out1;
core::triangle3df out2;
scene::ISceneNode* node2;
if (collMan->getCollisionPoint(raytrace, chessBoardNode->getTriangleSelector(), out1, out2, node2) == true)
{
// findIndexFromTriangle(out2) ???
}