예제 #1
0
파일: __init__.py 프로젝트: goosemo/monkey
 def __init__(self, iterations=10):
     self._space = cp.cpSpaceNew(iterations)
     self._callbacks = {} # To prevent the gc to collect the callbacks.
     self._default_callback = None
     self._shapes = {}
     self._static_shapes = {}
     self._bodies = set()
     self._joints = set()
예제 #2
0
파일: __init__.py 프로젝트: irskep/Gluball
 def __init__(self, iterations=10):
     """Create a new instace of the Space
     
     :Parameters:
         iterations : int
             Number of iterations to use in the impulse solver to solve 
             contacts.
     """
     self._space = cp.cpSpaceNew(iterations)
     self._callbacks = {} # To prevent the gc to collect the callbacks.
     self._default_callback = None
     self._shapes = {}
     self._static_shapes = {}
     self._bodies = set()
     self._joints = set()
예제 #3
0
파일: pymunk.py 프로젝트: ezequielp/cavemen
 def __init__(self, iterations=10):
     self._space = cp.cpSpaceNew(iterations)
     self._callbacks = {}  # To prevent the gc to collect the callbacks.
     self._shapes = {}
     self._static_shapes = {}
     self._bodies = {}