# Panda3d handling collisions on walls created in blender

Edit 2 : Updated code, so runnable zip isn't the same as the copied section bellow (though all that has changed is that part in run_me.py)

Edit: Runnable zip with source files, sorry: https://dl.dropboxusercontent.com/u/12781104/Collisions.zip

Right now I am trying to create a small room for my character to walk around in, it works decently but will walk through walls, I am having difficulty setting up the collision logic to stop the character from walking through walls. The problem is properly creating the collision plane to line up with the walls (is there a way to do this in blender?)...

Code so far that has to do with wall collisions

 [Removed imports]

....

self.cTrav = CollisionTraverser()
robotCHandler = CollisionHandlerQueue()
robotWallCHandler = CollisionHandlerPusher()

ralphStartPos = (0, 0, 0)
self.ralph.reparentTo(render)
self.ralph.setScale(1)
self.ralph.setPos(ralphStartPos)
# setup tube to suround robot
#(robot is 3 height, by 1.5, 1.5)
cTube = CollisionSphere(0, 0, 0, 3)

robotCollisionNode = self.ralph.attachNewNode(CollisionNode('robotcnode'))

self.environ.reparentTo(render)

root = self.environ.find("**/Root")
walls = root.findAllMatches("**/Plane*")

for w in walls:
# set it to the same bitmask so the collider collides