danecekpilar Posted August 22, 2017 Share Posted August 22, 2017 http://danecekpilar.borec.cz/ Hi guys. during the development in Phaser i found out, that there is no simple online editor for Making Physics bodies for P2 physics in Phaser. So i came up with an simple idea. To do a simple online body editor to make json files for Phaser. I know its super simple and it could do much more things as other desktop body editors can do, but when you want just simple body in two minutes, i think its a good way. I took me less than two hour to do it, so dont judge it for bad appearance and not efficient solutions for the algorithm. Maybe ill do things like more bodies in one json file, or auto edge-tracer adn stuff like that, but fell free to comment and come up with your ideas to improve it for the future. So please, if have have anything to say to this, comment below, i would be pleased. http://danecekpilar.borec.cz Link to comment Share on other sites More sharing options...
samid737 Posted August 22, 2017 Share Posted August 22, 2017 For edge tracing, you can use marching squares algorithm to get the contour data and then filter/downsample the data: marching squares from here and douglas peucker found here. danecekpilar 1 Link to comment Share on other sites More sharing options...
Recommended Posts