How to determine mesh name on collision

I add registerOnPhysicsCollide to the scene

During the collision, I want to do something with mesh.
But in the callback I only have impostors.
How to determine the mesh name?

The impostor has property “object” that you can use to get the mesh. Here I logged the name of the mesh that was collided with for example. :slight_smile:

4 Likes

thank you very much!

1 Like