Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.66 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.66 KB

2D Projectile Motion Simulator

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.

Features

  • 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.

Installation

  1. Clone the repository:
git clone https://github.com/Niravanaa/PySimulator.git

cd PySimulator
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Run the application (either through the executable or using the following command):
python main.py
  1. Enter the launch angle, initial velocity, and optional air resistance (if needed).

  2. Set the x-axis and y-axis ranges.

  3. Click the "Generate" button to simulate the projectile motion.

  4. Toggle grid lines on/off as needed.

  5. Click the "Clear" button to clear the plot.

Screenshots

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome!

Support

If you encounter any issues or have questions, please open an issue.