physics body editor file loader?

I want to use complex body, not really complex, but a little more than just square and circle.

dev blog http://www.aurelienribon.com/blog/projects/physics-body-editor/

Does Corona have a loader for this editor?

I think libGDX support this. and the output is suitable for Box2D.

or may there is a definition for the saved file so that I could implement a loader myself?

is there any free alternative physics body editor that is compatible with corona?

Hi @maxi326,

If you can export the coordinates (points) data from this software into a common file format (does it output to JSON?) then you can gather the points that way. Corona can not “directly” load this software, but if you can get the data into a readable format, then a quick module could be written to load that data and apply it to a physics body.

Best regards,

Brent

thanks for your advice, Brent, it’s a great idea.

end up using PE, it is really nice.

to keep things moving, I have to cut corners right now.

but if my project get bigger and more physics, then I might consider writing an intepreter.

Hi @maxi326,

If you can export the coordinates (points) data from this software into a common file format (does it output to JSON?) then you can gather the points that way. Corona can not “directly” load this software, but if you can get the data into a readable format, then a quick module could be written to load that data and apply it to a physics body.

Best regards,

Brent

thanks for your advice, Brent, it’s a great idea.

end up using PE, it is really nice.

to keep things moving, I have to cut corners right now.

but if my project get bigger and more physics, then I might consider writing an intepreter.

Hi I’m having a similar problem. I have bought a flappy bird template and changed the look of everything. However my bird collides with the old shape of the “tube”. I have used Physics Editor (PE) to make an accurate outline of my new “tube” and exported it as a .lua file, but I don’t know how to direct the main.lua to it? There is also a game.lua that came with the template too. Or do I need to cut and paste from one to another.

Any help or relevant guides appreciated

mofoofighter

Hi I’m having a similar problem. I have bought a flappy bird template and changed the look of everything. However my bird collides with the old shape of the “tube”. I have used Physics Editor (PE) to make an accurate outline of my new “tube” and exported it as a .lua file, but I don’t know how to direct the main.lua to it? There is also a game.lua that came with the template too. Or do I need to cut and paste from one to another.

Any help or relevant guides appreciated

mofoofighter