Export fixture outline coordinates
Posted: Mon Feb 08, 2016 8:52 pm
I export level scenes to JSON then load them in my game. Is there a way to include just the outline of a complex fixture, instead of vertices of each individual polygon?
In my game I've tried removing duplicate vertices of a fixture, then arranging them ccw. But it's not easy! I was hoping there was a more straightforward way of doing this, since in the editor you manipulate each fixture as a "whole".
In my game I've tried removing duplicate vertices of a fixture, then arranging them ccw. But it's not easy! I was hoping there was a more straightforward way of doing this, since in the editor you manipulate each fixture as a "whole".