I'm having some trouble creating Polygons in Pymunk.
import pymunk
space = pymunk.Space()
space.gravity = (0.0, 900.0)
box_points=[(-100,-100), (100,-100), (100,100), (-100, 100)]
body = pymunk.Body(10.0, 1000.0)
body.position = pymunk.Vec2d(300.0,300.0)
shape = pymunk.Poly(body, box_points, (0,0))
space.add(body, shape)
print shape.get_points()
# Outputs: [Vec2d(300.0, 300.0), Vec2d(300.0, 300.0), Vec2d(300.0, 300.0), Vec2d(300.0, 300.0)]
The vertices of the shape are all at the center of the body! (i.e. at (0, 0)). I think they shouldn't be, or am I skipping some step?
I'm running Mac OS 10.7.4, using Chipmunk v6.0.2 and Pymunk 2.1.0.. Is this a bug?