BGE , collision detection on multi-material object problem

Hi !

Is it possible to get back the touched material name/ID when a multi-material obj collided ?
I try to show my problem in the attached file: the python script what is working on the cube only get back the first material which defined on the sphere. collision_multiple_material_detect.blend (500 KB)

I don’t think it uses anything other then the first material for collisions , I don’t think any object bounds has poly_data but triangle mesh

edit: It looks like the collision sensor material is not a hitMaterial, rather the collision filter material,

This bug was reported two years ago by mrlarodos:

Ok, I understand. I have to solve it with seperated objects.
Thx all