Skip to content

mattlep11/projectile-motion-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProjectileMotionSim

A simulation to demonstrate simple 2D projectile motion under various conditions. It permit the user to play with a set of parameters (e.g. projectile mass, initial velocity, initial height, gravity, etc) in order to see how they may affect the arc of motion. In addition, a graph representing the arc will update live, with animated vectors representing the changing velocities, to follow the projectile as it moves in an animated chart.


FEATURES

  1. Modifiable Parameters: A variety of different parameters will be changeable by the user to test out different scenarios of projectile motion.
  2. Vector Illustration: Toggle-able vectors to appear on the animated graph as well as values updating live as the animation plays out.
  3. Previous Run Comparison: The ability to save previous trials and have them displayed during the live motion in more transparent colours.
  4. Graph of Motion: A real-time animated graph illustrating real projectile motion based on a set of inputted parameters.

INSTALLATION

To be able to run the Projectile Motion Simulator, ensure that you have a Java Development Kit (JDK) installed on your machine.

  1. Clone the git repository using: git clone https://github.com/mattlep11/ProjectileMotionSim.git
  2. Navigate to the project's root directory: cd ProjectileMotionSim/
  3. Clean and run the command via Gradle: .\gradlew clean run (on Windows) or ./gradlew clean run (on Linux or Mac)

BRIEF USER GUIDE

A. Playing function trajectory

  • Open the Parameters Menu
  • Enter the parameters for your simple projectile motion
  • Click "Ready" to lock in your selections
  • Click "Play" on the far left of the app to begin the animation playback
  • When you're finished, either 'Reset' to clear the current function or 'Save Run' to keep up to 5 on the graph

B. Clearing Saved Runs

  • Open the System Settings Menu
  • Click on 'Clear Saved Runs'

LIBRARIES

This project was made in collaboration with the following libraries:

  1. JavaFX
  2. ControlsFX
  3. AnimatedFX

DEVELOPERS

About

A JavaFX application used to generate graphs representing simple 2-D projectile motion and analyze the trajectory parameters in real time.

Topics

Resources

Stars

Watchers

Forks