Skip to content

georgeh1ll/Projectile-Motion-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Projectile-Motion-Simulator

This is a Python application that simulates projectile motion and plots a graph of the trajectory of a particle acting under gravity.

Features

  • Simulate projectile motion with user-defined initial velocity and launch angle.
  • Plot the trajectory of the projectile in a customizable graph.
  • Set custom x and y limits for the graph.
  • Teaching aid.

Screenshots

Screenshot 2023-11-03 131306

Using the Windows Executable (.exe) Version:

  1. Download the Executable:

    • Go to the GitHub releases page.
    • Find the latest release and locate the Windows executable file (e.g., projectile_motion_simulator.exe).
    • Click on the file to download it.
  2. Run the Executable:

    • Once the executable file is downloaded, double-click it to run the application.
  3. Enter Initial Parameters:

    • You'll see the application window with fields for "Initial Velocity (m/s)" and "Launch Angle (degrees)."
    • Enter the desired initial velocity and launch angle.
  4. Set Graph Limits:

    • You can adjust the X and Y limits for the graph using the sliders.
    • Set the desired limits for the graph.
  5. Update the Plot:

    • Click the "Update Plot" button to visualize the projectile motion.

Using the Python Version:

  1. Download Python File:

    • Download the Python file from the repository.
  2. Install Dependencies:

    • Make sure you have Python 3.x installed on your system.

    • Install the required dependencies using pip:

      pip install tkinter matplotlib numpy
  3. Run the Python Script:

    • Run using the following:
      python3 Projectile Motion Simulator.py
  4. Enter Initial Parameters:

    • The application window will open with fields for "Initial Velocity (m/s)" and "Launch Angle (degrees)."
    • Enter the desired initial velocity and launch angle.
  5. Set Graph Limits:

    • You can adjust the X and Y limits for the graph using the sliders.
    • Set the desired limits for the graph.
  6. Update the Plot:

    • Click the "Update Plot" button to visualize the projectile motion.

Requirements

  • Python 3.x
  • tkinter
  • matplotlib
  • numpy

Author

George Hill

Contributing

Contributions are welcome! If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Here are some areas where you can contribute:

  • Adding new features.
  • Enhancing the user interface.
  • Improving code performance.
  • Fixing bugs or issues.