2D Physics Sandbox

Run the Sandbox

2D sandbox

The physics sandbox started off life as a debugging tool for my 2D engine, but I got rather carried away with adding features. Version 4 now supports:

  • Creating and deleting regular and custom polygons and circles.
  • Giving +ve and -ve charge.
  • Springs (non-collidable) and string (flexable and collidable)
  • Saving, loading and sharing worlds.
  • Large world with movable and zoomable view

Overall, it's quite fun to play around building towers using circles and cross-braced springs and pinging things about with too much charge.

The sandbox uses HTML 5's canvas (and Google's excanvas for IE), so needs a fairly recent browser and far too much CPU power for what it is. The first sandbox requires less CPU power and runs in older browsers, but looks much worse.

Currently version four has pretty much the same featureset as version 2 did. However, it now uses the latest version of my physics engine and so should gain features quickly.

[-]

ShoutBox!

Feel free to leave a comment!


There's a copy of the sandbox here but I'm not sure how up to date it is. Also the saving/loading won't work without a php server
--Luke 27th Jul 10 17:45

Are we able to download the physics sandbox? It looks great!
--Connor 26th Jul 10 14:27

fyi, your awesome divwindows script doesnt work correctly when the window is created in an external script. so I had to fix it to where the window events refer to windows[windownumber] instead of the variable that the window was assigned to. thanks for it though!
--Mega 27th Apr 10 03:11

Graph plotter breaks whenever a term goes to infinity at 0, if you just detected this then plotted at 0.000001 and -0.000001 instead, then it would fix it (and similarly for other infinities)
--Mike 20th Feb 10 16:16

View all posts

Shout!

Favourite Game?
Planet Wars
73%
Chain Reaction
27%
Total Votes = 141

Old Polls