CollisionHandlerQueue Problems

Hello All,

I am fairly new to to Panda 3d along with coding in Python (1 week). While reading both the forums and the manual, I have picked up a great deal of information which so far allowed me to create key bindings along with basic gravity. My problem arises where i want to use CollisionHandlerQuene to prevent my character from walking through objects.

I created my sphere:

self.Sphere = CollisionSphere(0, 0, 2, 3.5)

Now, this is the part that I am confused. In the sample code for the manual, it says:

queue = CollisionHandlerQueue()
traverser.addCollider(fromObject, queue)
for i in range(queue.getNumEntries()):
     entry = queue.getEntry(i)
     print entry

What exactly is it refering to when it says “traverser.”?


Click –[HERE]–

ah thanks, that page should really have been posted before the handlers… I was just going in order using the next arrow.