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

fix: ensure the matterjs bounce speed is consistent #114

Closed bryanbraun closed 2 years ago

bryanbraun commented 2 years ago

Fixes sparkbox/bouncy-ball#113.

Testing instructions:

  1. Pull down this branch:
    • It's easy with gh: gh pr checkout 114
  2. Install dependencies: npm ci && npm run build
  3. Start the app: npm run start
  4. In firefox, browse to http://localhost:3000/#matter-js and confirm that the ball bounces at the same speed as the other demos. Note: it's ok if the ball loses bounce height over time... that's captured in a different issue.