Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)