Ejemplo n.º 1
0
 def remove_collisionpair_func(self, a, b):
     """Remove the collision pair function between shapes with 
     collision_type which match a and b.
     
     :Parameters:
         a : int
             The collision_type for the first shape
         b : int
             The collision_type for the second shape
         
     """
     if (a, b) in self._callbacks:
         del self._callbacks[(a, b)]
     cp.cpSpaceRemoveCollisionPairFunc(self._space, a, b)
Ejemplo n.º 2
0
 def remove_collisionpair_func(self, a, b):
     
     if (a,b) in self._callbacks:
         del self._callbacks[(a,b)]
     cp.cpSpaceRemoveCollisionPairFunc(self._space, a, b)
Ejemplo n.º 3
0
 def remove_collisionpair_func(self, a, b):
     """Remove the collision pair function between the shapes a and b"""
     if (a, b) in self._callbacks:
         del self._callbacks[(a, b)]
     cp.cpSpaceRemoveCollisionPairFunc(self._space, a, b)
Ejemplo n.º 4
0
    def remove_collisionpair_func(self, a, b):

        if (a, b) in self._callbacks:
            del self._callbacks[(a, b)]
        cp.cpSpaceRemoveCollisionPairFunc(self._space, a, b)