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.
- Modifiable Parameters: A variety of different parameters will be changeable by the user to test out different scenarios of projectile motion.
- Vector Illustration: Toggle-able vectors to appear on the animated graph as well as values updating live as the animation plays out.
- Previous Run Comparison: The ability to save previous trials and have them displayed during the live motion in more transparent colours.
- Graph of Motion: A real-time animated graph illustrating real projectile motion based on a set of inputted parameters.
To be able to run the Projectile Motion Simulator, ensure that you have a Java Development Kit (JDK) installed on your machine.
- Clone the git repository using:
git clone https://github.com/mattlep11/ProjectileMotionSim.git
- Navigate to the project's root directory:
cd ProjectileMotionSim/
- Clean and run the command via Gradle:
.\gradlew clean run
(on Windows) or./gradlew clean run
(on Linux or Mac)
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'
This project was made in collaboration with the following libraries:
- JavaFX
- ControlsFX
- AnimatedFX
- Coordinator: coadythecoder
- mattlep11
- shad2512