Page 1 of 1

box2d playground

Posted: Sat Apr 26, 2014 9:32 pm
by player_258
hi!

i made a box2d playground a while back but eventually got bored and it sat on my hard drive for a year or something.
the export function will write a .lua in "AppData\Roaming\LOVE\box2d_editor"

buttons are not labeled (too lazy) so this is what they do:

Code: Select all

 -Selection 

 -Rectangle
 -Polygon
 -Circle
 -Edge
 -Chain

 -Show/hide grid
 -Smaller grid
 -Bigger grid
 -Disable snap

 -Export
controls:

Code: Select all

 -T: enable/disable test mode
 -del: delete shape selected
 -left mouse button: drag shapes around in test mode
 -middle mouse button: move camera
 -right mouse button: place last vertex in polygons and chainshapes
pic1.png
pic1.png (38.63 KiB) Viewed 2326 times
pic3.png
pic3.png (36.86 KiB) Viewed 2326 times
feel free to do whatever you want with it :awesome:

Re: box2d playground

Posted: Mon Apr 28, 2014 11:48 am
by hairy puppy
thats very nice, its just lovely to see physics at work ;)
i just gotten to box2d for love2d, ive used ofxbox2d with openframeworks for a while so it should be easy to convert the ideas over