Collisions

Hi.
The collisions of the players are defined in this way:

def setupCollissions(self, num, cTrav):
    self.numPlayer= num # numero do jogador
    #registo das colisoes do ralph
    self.Zcoll = cTrav
    self.ZcollQueue = CollisionHandlerQueue()

    #jogador e terreno
    self.groundCol = CollisionNode('playerRay'+str(self.numPlayer))
    self.groundRay = CollisionRay()
    self.groundColNp = self.ralph.attachNewNode(self.groundCol)
    self.groundRay.setOrigin(0,0,1000)
    self.groundRay.setDirection(0,0,-1)
    self.groundCol.addSolid(self.groundRay)
    self.groundColNp.node().setFromCollideMask(BitMask32.bit(1))
    self.groundColNp.node().setIntoCollideMask(BitMask32.allOff())
    self.Zcoll.addCollider(self.groundColNp, self.ZcollQueue)

    self.playerPath = self.ralph.find("**/Cylinder02")
    self.playerPath.node().setFromCollideMask(BitMask32.bit(0))
    self.playerPath.node().setIntoCollideMask(BitMask32.bit(0))
    self.Zcoll.addCollider(self.playerPath, self.ZcollQueue)

but the playrate became 14.8 or slower. Is there something wrong on the collisions code?

thanks in advance
pjan :smiley: