Try to use this modifier: SCAN_TEXTURE
Perhaps you can get information about the objects what was hit.
From the manual:
Code:
if (hit.texname) printf("Floor texture: %s",hit.texname);