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?
How to get position of a shape?
-
- Posts: 1
- Joined: Sun Mar 15, 2009 2:02 pm
- Contact:
-
- Posts: 56
- Joined: Tue Jul 15, 2008 4:13 am
- Contact:
Re: How to get position of a shape?
you can't really query the position of the shape, you'd use cpBodyLocal2World(yourBody, shapeOffset); to compute it.
Who is online
Users browsing this forum: No registered users and 12 guests