This is a Python application for simulating 2D projectile motion and visualizing the trajectories. You can input launch angle, initial velocity, and optionally, air resistance, and the application will plot the trajectory along with essential metrics.
- Simulate 2D projectile motion.
- Visualize trajectories on a matplotlib plot.
- Calculate and display key metrics: max height, range, and time of flight.
- Adjustable x-axis and y-axis ranges.
- Toggle grid lines on the plot.
- Clear the plot to start fresh.
- Clone the repository:
git clone https://github.com/Niravanaa/PySimulator.git
cd PySimulator
- Install the required dependencies:
pip install -r requirements.txt
- Run the application (either through the executable or using the following command):
python main.py
-
Enter the launch angle, initial velocity, and optional air resistance (if needed).
-
Set the x-axis and y-axis ranges.
-
Click the "Generate" button to simulate the projectile motion.
-
Toggle grid lines on/off as needed.
-
Click the "Clear" button to clear the plot.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome!
If you encounter any issues or have questions, please open an issue.