Page 1 of 1

Compound Shape

Posted: Sat Oct 09, 2010 3:09 am
by thejinchao
Hi! I'm new user of chipmunk. It's a very cool physics engine.
I have a question:
Is there any way to create a compound shape and body in space, just like the sample in Box2D "Compound Shapes", Thanks!
1.JPG

Re: Compound Shape

Posted: Sat Oct 09, 2010 10:14 am
by slembcke
Yes. You don't really add a shape to a body in Chipmunk so much as you tell a shape which body it's attached to when you create it. Just make more than one shape that points to the same body.

Re: Compound Shape

Posted: Mon Oct 11, 2010 9:40 am
by thejinchao
Thanks!
I have find the sample code in “TheoJansen”, thank you again.