Collision Detection issue

Hello all,
I have an egg file that has a road on which Ralph is running.
Now, this road, in its 3d max file, has an object called “main site” at the rock bottom over which is a group called “road” along with which is another object called “RoadCam04”. Right on the top is a rectagular object called “Zebra07”. This zebra07 is the zebra crossing strips on the road.
Now, when Ralph is walking on the zebra crossing I want to print a message “Zebra Crossing”.
Unfortunately, when Ralph is standing on the Zebra Crossing, since there are four layers on top of each other, they all appear one after another
in the groundHandler’s entry, the output of which is listed below. Even though, the zebra object is detected by the following statement:
self.zebra = self.environ.find("**/Zebra07") and also listed in the groundHandler’s entry given below, the following code does not turn up the required result:
i.e. “u r on zebra crossing” statement.

Please provide some guidance on where I might be wrong.

Regards,
Dev.


CollisionEntry:
from render/Ralph/ralphRay
into render/sceneReducedWholeExport_v2.egg/devVersion_least_exportScene/-PandaNode/-PandaNode/-GeomNode []
at -8.68206 12.3413 -2.00216
normal 0 0 1
respect_prev_transform = 0

CollisionEntry:
from render/Ralph/ralphRay
into render/sceneReducedWholeExport_v2.egg/devVersion_least_exportScene/main site []
at -8.68206 12.3413 -2.28274
normal 0 0 1
respect_prev_transform = 0

CollisionEntry:
from render/Ralph/ralphRay
into render/sceneReducedWholeExport_v2.egg/devVersion_least_exportScene/-PandaNode/road []
at -8.68206 12.3413 -2.10872
normal 0 0 1
respect_prev_transform = 0

CollisionEntry:
from render/Ralph/ralphRay
into render/sceneReducedWholeExport_v2.egg/devVersion_least_exportScene/-PandaNode/road []
at -8.68206 12.3413 -2.00216
normal 0 0 1
respect_prev_transform = 0

CollisionEntry:
from render/Ralph/ralphRay
into render/sceneReducedWholeExport_v2.egg/devVersion_least_exportScene/-PandaNode/-PandaNode/RoadCam04 []
at -8.68206 12.3413 -2.10872
normal 0 0 1
respect_prev_transform = 0

CollisionEntry:
from render/Ralph/ralphRay
into render/sceneReducedWholeExport_v2.egg/devVersion_least_exportScene/-PandaNode/-PandaNode/-GeomNode []
at -8.68206 12.3413 -2.10872
normal 0 0 1
respect_prev_transform = 0

CollisionEntry:
from render/Ralph/ralphRay
into render/sceneReducedWholeExport_v2.egg/devVersion_least_exportScene/-PandaNode/-PandaNode/Zebra07 []
at -8.68206 12.3413 -2.00216
normal 0 0 1
respect_prev_transform = 0

Would be helpful if you posted your code too. However, if the zebra crossing node is the first thing that your collision ray is supposed to hit, you can sort the collision entries by calling sortEntries() on your CollisionHandlerQueue and this will it so the zebra crossing entry will appear first.