Closed elemel closed 12 years ago
When adapting polygons, place each vertex in the center of a grid cell. When adapting circles, place the center of the circle in the center of a grid cell. Make the circle radius a multiple of the grid cell size. Prefer circles over polygons.
Might use edge chains for static bodies.
Compute mass data from the grid cells, not from the adapted shapes.
When adapting shapes, first try a circle. If that fails, use an edge chain. If the body is dynamic, convert the edge chain to polygons.
Read more about Voronoi diagrams and Poisson disc distributions.
Adapt physics shapes to arbitrary blocks. User can interact with blocks directly using the mouse.