if(hit) {
*hit = nearest_hit;
// if we are interested in the mesh and not the faces set obj to this
if(Mesh::intersect_mode & ISECT_FACE) {
if(hit) {
*hit = nearest_hit;
// if we are interested in the mesh and not the faces set obj to this
if(Mesh::intersect_mode & ISECT_FACE) {