Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/physics.py
diff options
context:
space:
mode:
Diffstat (limited to 'physics.py')
-rw-r--r--physics.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/physics.py b/physics.py
index b76db14..b2ca2cb 100644
--- a/physics.py
+++ b/physics.py
@@ -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()