Bouncing Balls Physics

Elastic collisions, gravity, friction sliders - add 100+ balls and watch the chaos

Physics Simulation

Watch the balls bounce with realistic physics

Controls

Stats

Total Balls:0
Status:Running
Canvas:800Γ—600

About Bouncing Balls Physics

Physics Simulation

This simulation demonstrates realistic physics including gravity, friction, and elastic collisions. Each ball interacts with walls and other balls using real physics calculations.

Features

  • Powered by Matter.js physics engine
  • Realistic gravity simulation
  • Accurate elastic collision detection
  • Air resistance and friction
  • Wall bouncing with energy absorption
  • Support for 100+ balls simultaneously
  • Smooth 60 FPS animation

Controls

  • Balls Slider: Adjust the number of balls (1-100)
  • Gravity Slider: Control gravitational force (0-2)
  • Air Resistance: Adjust friction (0-0.1, lower = less drag)
  • Play/Pause: Start or stop the simulation
  • Reset: Generate new random balls
  • Add Balls: Quickly add 10, 50, or 100 balls

Physics Concepts

  • Gravity: Constant downward acceleration
  • Friction: Velocity multiplier that slows movement
  • Elastic Collision: Energy-conserving ball-to-ball impacts
  • Wall Bounce: Velocity reversal with energy loss
  • Momentum Conservation: Total momentum preserved in collisions

Try This

  • Set gravity to 0 for zero-gravity simulation
  • Set air resistance to 0 for perpetual motion
  • Add 100+ balls and watch the chaos!
  • Experiment with different gravity/friction combinations
  • High gravity (2.0) creates fast-paced action