Exemple #1
0
 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()
Exemple #2
0
 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()
Exemple #3
0
 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 = {}