A beautiful and interactive Python application to simulate projectile motion with real-time graphical visualization.
- Interactive GUI: Modern, clean interface with attractive fonts and colors
- Real-time Animation: Watch the projectile follow its trajectory in real-time
- Comprehensive Results: Displays maximum height, time of flight, and range
- Customizable Parameters: Adjust initial velocity, angle, and gravitational acceleration
- Visual Feedback: Animated graph showing the complete projectile path
- Install Python dependencies:
pip install -r requirements.txtRun the simulator:
python projectile_simulator.py-
Enter Parameters:
- Initial Velocity (m/s): The starting speed of the projectile
- Angle of Projection (°): Launch angle between 0 and 90 degrees
- Gravitational Acceleration (m/s²): Default is 9.8 for Earth
-
Click "Calculate & Simulate": The application will:
- Calculate the maximum height
- Calculate the time of flight
- Calculate the range
- Animate the projectile motion in real-time
-
Click "Reset": Clear all inputs and start fresh
- Time of Flight: T = (2 × v × sin(θ)) / g
- Maximum Height: H = (v² × sin²(θ)) / (2g)
- Range: R = (v² × sin(2θ)) / g
- Trajectory: x(t) = v × cos(θ) × t, y(t) = v × sin(θ) × t - 0.5 × g × t²
- Python 3.7+
- tkinter (usually comes with Python)
- matplotlib
- numpy
The application features:
- Clean, modern UI with professional color scheme
- Real-time animated trajectory
- Clear display of calculated results
- Easy-to-use input controls