Changeset 237 for trunk/src/pyspacewar/world.py
- Timestamp:
- 01/05/07 02:21:51 (5 years ago)
- Files:
-
- 1 modified
-
trunk/src/pyspacewar/world.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pyspacewar/world.py
r231 r237 346 346 self.appearance = appearance 347 347 self.world = None 348 self.bounce_effect = None 348 349 349 350 def distanceTo(self, other): … … 463 464 collision_distance = other.radius + self.radius 464 465 self.position = other.position + normal.scaled(collision_distance) 466 if self.bounce_effect: 467 self.bounce_effect(self, other) 465 468 466 469 def add_debris(self, howmany=None, maxdistance=1.0, time=5.0):
