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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/physics.py b/physics.py
index fff69ca..b0e7dcc 100644
--- a/physics.py
+++ b/physics.py
@@ -36,7 +36,7 @@ from pygame.color import *
sys.path.append("lib/")
# If your architecture is different, comment these lines and install
# the modules in your system.
-sys.path.append("lib/Box2D-2.0.2b1-py2.5-linux-i686.egg")
+sys.path.append("lib/Box2D-2.3b0-py2.7-linux-i686.egg")
import Box2D as box2d
import elements
@@ -146,7 +146,7 @@ class PhysicsGame:
if self.in_focus:
# Drive motors
if self.world.run_physics:
- bodies_present = len(self.world.world.GetBodyList())
+ bodies_present = len(self.world.world.bodies)
clear_all_active = self.activity.clear_all.get_sensitive()
if (bodies_present > 1) and clear_all_active is False:
self.activity.clear_all.set_sensitive(True)
@@ -191,7 +191,7 @@ class PhysicsGame:
except IndexError:
self.full_pos_list.append([posx, posy])
- for body in self.world.world.GetBodyList():
+ for body in self.world.world.bodies:
if isinstance(body.userData, dict):
if body.userData.has_key('rollMotor'):
diff = body.userData['rollMotor'] \