Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools.py b/tools.py
index 1302d8c..0bb4c90 100644
--- a/tools.py
+++ b/tools.py
@@ -451,13 +451,11 @@ class BridgeJointTool(Tool):
if event.type != MOUSEBUTTONUP or event.button != 1:
return
- print "mouse button up"
- bodies = self.game.world.get_bodies_at_pos(event.pos)
+ bodies = self.game.world.get_bodies_at_pos(event.pos,
+ include_static=True)
if not bodies or len(bodies) != 2:
return
- print bodies[0]
- print bodies[1]
jointDef = box2d.b2RevoluteJointDef()
jointDef.Initialize(bodies[0], bodies[1], self.to_b2vec(event.pos))
joint = self.game.world.world.CreateJoint(jointDef)