tanchiki
diff body.py @ 54:5cb3fef573f6
UI for two users
author | Olga Zolotareva <olya_zol@inbox.ru> |
---|---|
date | Sat, 25 Dec 2010 01:51:31 +0300 |
parents | 5450c97fbc38 |
children |
line diff
1.1 --- a/body.py Fri Dec 24 23:28:21 2010 +0300 1.2 +++ b/body.py Sat Dec 25 01:51:31 2010 +0300 1.3 @@ -52,7 +52,6 @@ 1.4 1.5 1.6 def accelerate(self, speed_delta): 1.7 - print 'speed_delta', speed_delta #test 1.8 self.velocity += self.base_orientation*speed_delta*delta_t 1.9 if abs(self.velocity) > max_velocity: 1.10 self.velocity.rho = max_velocity 1.11 @@ -77,6 +76,7 @@ 1.12 1.13 def on_collision(self, other): 1.14 pass 1.15 + # self.velocity , other.velocity = self.velocity + other.velocity , other.velocity + self.velocity 1.16 1.17 def on_wall(self): 1.18 self.velocity = vector.Vector(0,0)