2D Polygon Triangulation

Posted by BleedObsidian on Game Development See other posts from Game Development or by BleedObsidian
Published on 2013-10-07T17:07:10Z Indexed on 2014/06/10 15:44 UTC
Read the original article Hit count: 202

Filed under:
|
|
|
|

I am creating a game engine using the JBox2D physics engine. It only allows you to create polygon fixtures up to 8 vertices, To create a body with more than 8 vertices, you need to create multiple fixtures for the body.

My question is, How can I split the polygons a user creates into smaller polygons for JBox2D?

Also, what topology should I use when splitting the polygons and why? (If JBox2D can have up to 8 vertices, why not split polygons into 8 per polygon)

© Game Development or respective owner

Related posts about java

Related posts about physics