Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/physics.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2008-08-30 21:45:22 (GMT)
committer Daniel Drake <dsd@laptop.org>2008-08-30 21:45:22 (GMT)
commitf837fb6f1d40087a3686d2e22c70e05be02e58f3 (patch)
tree6f71c817040bde91ea659b83a625a0b1dd26ba6c /physics.py
parent53489a7c53e90e1c31a06877549bd8e2fb052685 (diff)
create a tool for adding resolute joints
Diffstat (limited to 'physics.py')
-rw-r--r--physics.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/physics.py b/physics.py
index 6d9fb78..b76db14 100644
--- a/physics.py
+++ b/physics.py
@@ -23,7 +23,7 @@ import olpcgames
import elements
from elements import Elements
import tools
-import bridge
+from bridge import Bridge
from helpers import *
class PhysicsGame:
@@ -35,6 +35,7 @@ class PhysicsGame:
self.canvas = olpcgames.ACTIVITY.canvas
self.joystickobject = None
self.debug = True
+
# create the name --> instance map for components
self.toolList = {}
for c in tools.allTools:
@@ -48,7 +49,8 @@ class PhysicsGame:
# set up static environment
self.world.add.ground()
- bridge.create_world(self)
+ self.bridge = Bridge(self)
+ self.bridge.create_world()
def run(self):
self.running = True