I have a body with multiple shapes, when the body collides with a wall, I want the body to break apart into multiple bodies (one for each shape).
Is there a way to return the center of the shape for the new body position?
Trying to split a body with multiple shapes into multiple bo
-
- Posts: 1
- Joined: Tue Mar 30, 2010 11:48 am
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Trying to split a body with multiple shapes into multiple bo
http://en.wikipedia.org/wiki/Centroid#C ... of_polygon is what you are looking for.
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/
Who is online
Users browsing this forum: No registered users and 17 guests