Hi guys
Im having a little trouble with the collider. It says the collider is emptey and I don’t know how to fill it.
Please Help
Thanks Guys
Hi guys
Im having a little trouble with the collider. It says the collider is emptey and I don’t know how to fill it.
Please Help
Thanks Guys
self.Robo is your collision solid(s) wrapped up in a CollisionNode, correct?
According to that error, self.Robo is either empty, or contains something other than a CollisionNode.
You should assign CollisionNodes (containing Collision solids) to the traverser.
Such as:
wallRay = CollisionRay (0, 0, 0.5, 0, 0, -1)
wallFinder = object.attachNewNode (CollisionNode('wallFinderCollisionNode'))
wallFinder.node().addSolid(wallRay)
wallEvent = CollisionHandlerQueue()
base.cTrav.addCollider (wallFinder, wallEvent)