I have a question regarding the CollisionHandlerEvent.
My problem is that I cannot get an ActorNode to colllide with visible geometry. I have an ActorNode with its from and into bitmasks set to allOn() and a regular PandaNode with its collideMask set to allOn().
I have set the collisionHandler to recognize the following patterns:
I have also set my collisionManager to accept the following events:
acceptEvent(sColl + '-into' , self.handleTrackCollisionInto) acceptEvent(sColl + '-outof' , self.handleTrackCollisionOutof)
where sColl indicates a unique string value generated when attaching the collision node to another node.
The methods handleTrackCollisionInto and handleTrackCollisionOutof are indentical and look like this:
handleTrackCollisionInto(self, entry): print entry
But when my ActorNode collides with the geomtry, nothing happens!!!
I have added the collision object on the ActorNode to my CollisionTraverser.
I’m not sure if I also have to add it to my CollisionHandler and if so how??? CollisionHandlerEvent has not attribute addCollider()…
Anybody got any ideas, or any simple source code where they have Collision from a CollisionNode with visible geometry using CollisionHandlerEvent ?
Any help would be most appreciated.