Compound Shape

Official forum for the Chipmunk2D Physics Library.
Post Reply
thejinchao
Posts: 4
Joined: Thu Sep 30, 2010 1:09 am
Contact:

Compound Shape

Post 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
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Compound Shape

Post 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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
thejinchao
Posts: 4
Joined: Thu Sep 30, 2010 1:09 am
Contact:

Re: Compound Shape

Post by thejinchao »

Thanks!
I have find the sample code in “TheoJansen”, thank you again.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests