bitbrain / braingdx

:video_game: Game jam framework based on libgdx.
Apache License 2.0
83 stars 1 forks source link

Complex polygon support for box2d #208

Open bitbrain opened 4 years ago

bitbrain commented 4 years ago

This is a follow-up to https://github.com/bitbrain/braingdx/issues/130

box2d has a limitation of 8 vertices per polygon. As a result, we should introduce triangle stripping and create multiple fixtures per body, as shown in this repository.