How can i get the actual name of an into object.

I need to find the name of a collision node.

up to now i have been doing

if entry.getIntoNode().getName() == "earthCollisionShape":

but i wont always know the shape’s name such as if its an instance of an asteroid. How can i figure out the name of the object my laser has hit?

panda3d.org/apiref.php?page= … toNodePath