def __init__(self, x, y, width = 30.0, height = 30.0, do_reaction = False): Newton.__init__(self, x, y, width, height) Process.__init__(self, x, y, width, height) self.__ode_walls = [] self.__rotor = None self.__reactor_output = None self.render_walls = True self.render_valves = True self.mouse_over_property= False self.bounds_check = True self.do_reaction = do_reaction self._delete_list = [] # for buffering removals during ode reaction collision callback
def __init__(self, x, y): Newton.__init__(self, x, y, SIZE, SIZE) self.scale_to_container = True