Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/w/r/Wrappyr-HEAD/tests/test_box2d.py   Wrappyr(Download)
#!/usr/bin/env python2.6
from wrappyr.runtime import arrayof
 
from Box2D.common import b2Vec2
from Box2D.collision.shapes import b2PolygonShape
groundBody = world.CreateBody(groundBodyDef)
 
groundBox = b2PolygonShape()
groundBox.SetAsBox(50.0, 10.0)
 
body = world.CreateBody(bodyDef)
 
dynamicBox = b2PolygonShape()
dynamicBox.SetAsBox(1.0, 1.0)
 
    print vertex.x, vertex.y
 
slopeShape = b2PolygonShape()
slopeShape.Set(vertices, 3)