Ball Pit

Balls bouncing around on a two-dimensional plane

Creata utilizzando Web Worker, Canvas,

  • 201 visualizzazioni
  • 0 commenti

Ulteriori informazioni su questa demo da parte del suo autore

This demo demonstrates one very basic way that web workers can be used for simulating physics.

Use tips:try adding 10-100 at a time by entering the number of balls you want to add in the textbox at the top, then click "Add". Also: try resizing the window or zooming in/out.

This demo uses a worker to track ball location and a worker nested in the worker that tracks ball location to detect collisions (for this reason, my demo will not work in chrome/webkit - see:http://code.google.com/p/chromium/issues/detail?id=31666).

Ancora nessun commento.

Effettua l’accesso per dare il tuo contributo.

About this Demo

Scarica il codice sorgente file zip · 10.63 KB

Questa demo è disponibile sotto licenza GPL.