sparkbox / bouncy-ball

:red_circle: Compare web animation techniques by bouncing a ball with each one.
https://sparkbox.github.io/bouncy-ball
MIT License
605 stars 66 forks source link

Add a demo using a 2D physics engine #34

Closed bryanbraun closed 7 years ago

bryanbraun commented 7 years ago

For example, matter.js.

Here's a rough prototype that could turn into a demo: https://codepen.io/bryanbraun/pen/gLxmga

codepen_-_matterjs_bouncy-ball_prototype_and_docker-compose_yml_ ___code_bryanbraun_gridmaster

note to future self: the rectangle boundaries are annoying to work with. Maybe I can make better boundaries with world.bounds