diff options
author | Daniel Drake <dsd@laptop.org> | 2008-08-30 21:45:22 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2008-08-30 21:45:22 (GMT) |
commit | f837fb6f1d40087a3686d2e22c70e05be02e58f3 (patch) | |
tree | 6f71c817040bde91ea659b83a625a0b1dd26ba6c /physics.py | |
parent | 53489a7c53e90e1c31a06877549bd8e2fb052685 (diff) |
create a tool for adding resolute joints
Diffstat (limited to 'physics.py')
-rw-r--r-- | physics.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |