Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 729 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 729 Bytes

collision-detection

Courtesy

Description

In this program, we use the Pythagorean theorem to determine the distance between particles and to detect if said particles are colliding. Physics plays a major role in bouncing the particles off of one another. We use the Elastic Collision Equation to maintain all energy within the particles. No energy is lost! It also bounces particles in a direction that depends on the angle of collision. Thus, creating a realistic bounce effect.

Particles

Particles