diff options
Diffstat (limited to 'elements/elements.py')
-rw-r--r-- | elements/elements.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/elements/elements.py b/elements/elements.py index 625844c..8ab4383 100644 --- a/elements/elements.py +++ b/elements/elements.py @@ -104,7 +104,7 @@ class Elements: self.doSleep = True # Create the World - self.world = box2d.b2World(self.worldAABB, self.gravity, self.doSleep) + self.world = box2d.b2World(self.gravity, self.doSleep) # Init Colors self.init_colors() @@ -326,8 +326,9 @@ class Elements: # Walk through all known elements self.renderer.start_drawing() - for body in self.world.bodyList: - xform = body.GetXForm() + for body in self.world.bodies: + print dir(b2Body) + xform = body.GetTransform() shape = body.GetShapeList() angle = body.GetAngle() |