Collision Event and barrier problem

Hello dudes …

I have a little problem in my collision system:
When I use a barrier tag or any other polygonal collision, I cant use any handler event because i cant find the into node, but when I use any HandlerQueue, in same model, everything runs fine.

I am using “name = entry.getIntoNodePath()” to find my nodes in any handler event, but just work in collision solids like spheres.

Using event handler, when I print name, I get ‘render/cenarioC/-PandaNode/cenario’. I already tried cam.cenarioC and cam.cenario but nothing. (cam is my class name).

If I am using a Queue event, I found any node using:

for i in range(self.centerHandler.getNumEntries()):
entry = self.centerHandler.getEntry(i)
name = entry.getIntoNode().getName()
if name == ‘cenario’ : self.cenarioCollideHandler (entry)

where ‘cenario’, is my barrier object.

I’m not sure I understand what problem you’re describing, but I suspect you might be having the fundamental problem that the object of the collision is a low-level GeomNode, and you’re expecting to find a higher-level parent node instead.

If that’s the case, try using the setTag()/getNetTag() functions as described in Clicking on 3D Objects.

David