Please enable JavaScript to use CodeHS

Science in Coding - Gravity & Collisions

Students create a bouncing ball simulation in JavaScript, complete with gravity and collisions!

Medium

3 Hours

High School

Project Description

Project Demo

Explore this program before assigning it!

Project Overview

Here is an outline of the project activities:
Introduction to Graphics Programming
Drawing a Ball
Have a Ball!
Adding Gravity
Ball in Motion
To the Moon
Time to Impact
Make an Impact
Sanity Check
Elastic Collisions
Bounce the Ball
Off the Wall!
Keepin' it Real (Elastic)