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!
Compound Shape
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Compound Shape
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 4
- Joined: Thu Sep 30, 2010 1:09 am
- Contact:
Re: Compound Shape
Thanks!
I have find the sample code in “TheoJansen”, thank you again.
I have find the sample code in “TheoJansen”, thank you again.
Who is online
Users browsing this forum: No registered users and 8 guests