diff options
author | Daniel Drake <dsd@laptop.org> | 2008-08-30 22:49:32 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2008-08-30 22:49:32 (GMT) |
commit | 233d543dab3f0a656d1e34ed306a08ffcee85c73 (patch) | |
tree | 173f7dfe41e0e68e5ed5c30401a9ae0847a0a055 /physics.py | |
parent | f837fb6f1d40087a3686d2e22c70e05be02e58f3 (diff) |
destroy joints when excess force is applied
Diffstat (limited to 'physics.py')
-rw-r--r-- | physics.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -59,6 +59,9 @@ class PhysicsGame: self.currentTool.handleEvents(event) # Clear Display self.screen.fill((255,255,255)) #255 for white + + if self.world.run_physics: + self.bridge.for_each_frame() # Update & Draw World self.world.update() @@ -71,6 +74,7 @@ class PhysicsGame: text = self.font.render("Current Tool: "+self.currentTool.name, True, (255,255,255)) textpos = text.get_rect(left=700,top=7) self.screen.blit(text,textpos) + # Flip Display pygame.display.flip() |