def compute_force(self): self.force_x = 0.0 self.force_y = 0.0 DeviceAllocator.device_do(Body, Body.apply_force, self)
def compute_force(self): self.force.to_zero() DeviceAllocator.device_do(Body, Body.apply_force, self)
def compute_force(self): self.force_x = 0.0 self.force_y = 0.0 DeviceAllocator.device_do(Body, Body.apply_force, self)
def compute_force(self): self.force.to_zero() DeviceAllocator.device_do(Body, Body.apply_force, self)