Please enable JavaScript to use CodeHS

Javascript with Physics: Bouncing Ball Simulation

Have you ever wondered when and where you will use some of those concepts you learned in physics? In this lesson, you'll apply your skills in creating a bouncing ball simulation, complete with gravity and collisions!

By Brian Piltin

Resource Lesson Plan
Video Introduction to Graphics Programming
Example Drawing a Ball
Exercise Have a Ball!
Video Adding Gravity
Example Ball in Motion
Exercise To the Moon
Video Time to Impact
Example Make an Impact
Exercise Sanity Check
Video Elastic Collisions
Example Bounce that Ball
Exercise Off the Wall!
Challenge Keepin' it Real (Elastic)