Page 1 of 1

How to get position of a shape?

Posted: Sun Mar 15, 2009 2:08 pm
by lajos
New to this forum and chipmunk. Thanks for making this awesome physics engine!

I have a shape that's attached to a rigid body, but it's offset from the center
of the body.

How do I query the position of the shape during simulation?

Re: How to get position of a shape?

Posted: Mon Mar 16, 2009 3:58 am
by ker
you can't really query the position of the shape, you'd use cpBodyLocal2World(yourBody, shapeOffset); to compute it.