I noticed that in a .egg file, my different mesh names are retained. When I have another object collide with that a mesh in that .egg file, how do I retrieve the mesh name? I searched the documentation but I couldn’t find anything…
The mesh name generally becomes the name of the PandaNode. When a collision is detected, you can get the name of the “into” node from the CollisionEntry object: entry.getIntoNode().getName().
If you are using a CollisionHandlerEvent, or some derivative like CollisionHandlerPusher, you can also set it up so that the name of the “into” node becomes a part of the event name it generates when the collision occurs, so you can listen for just the particular collision that you are waiting for. You would do this with the addInPattern() method.