Skip to content

AsG520/Elastic-Collision-Simulation-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Elastic Collision Simulation Project

Visual of Simulation
image

Features in Simulation

Physics Concepts in Simulation

  • Conversation of Momentum (p): m1i + m2i = m1f + m2f.
  • Elastic Collisions.

How it Works

Requirements

  • Java (JDK or higher).
  • IDE (e.g., VS Code, Eclipse, or IntelliJ).

How to Run

  1. Copy the code into a Java file named "ElasticCollision.java".
  2. Compile the program: "javac ElasticCollision.java".
  3. Run the program: "java ElasticCollision".

About

The project demonstrates conservation of momentum between three balls, respective with their own mass, speed, x-position, and y-position. Using derived Physics equations I determined the magnitude and direction for the final velocity for each ball when they make contact. As a result, this provides the ball with it's new updated position.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages