コード例 #1
0
ファイル: __init__.py プロジェクト: irskep/Gluball
 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)
コード例 #2
0
ファイル: pymunk.py プロジェクト: kakila/cavemen
 def remove_collisionpair_func(self, a, b):
     
     if (a,b) in self._callbacks:
         del self._callbacks[(a,b)]
     cp.cpSpaceRemoveCollisionPairFunc(self._space, a, b)
コード例 #3
0
ファイル: __init__.py プロジェクト: goosemo/monkey
 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)
コード例 #4
0
ファイル: pymunk.py プロジェクト: ezequielp/cavemen
    def remove_collisionpair_func(self, a, b):

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