def swallow(self, body): #print 'Reactor swallowing a body:', body.__class__ if body.__class__ is Rotor: # TODO ugly hack print "create_rotor" self.rotor = self.create_rotor(0, 0, 5, 150) else: Plato.swallow(self, body)
def swallow(self, body): print 'swallowing a body:', body.__class__ body.set_newton(self) Plato.swallow(self, body)