Ball Pit

Balls bouncing around on a two-dimensional plane

이용 기술 웹 워커, 캔버스,

  • 조회수 96회

현재 데모에 대한 개발자 댓글

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).

About this Demo

소스 다운로드 10.63 KB · ZIP 파일

현재 데모는 GPL 라이센스 하에 공개되고 있습니다.