A dynamic simulation of oblique projectile motion with an interactive and customizable user experience.
This project was independently developed as a final project to complete the Introduction to Computer Science course ahead of schedule during my studies.
You can view the original project presentation by clicking the link below:
- Manual configuration of simulation parameters:
- Initial speed
- Launch angle
- Initial height
- Gravity acceleration
- Real-time display of position and velocity components (
Vx
,Vy
) - Visualization of the projectile's trajectory
- Pause, resume, or reset the simulation
- Toggle between a ball-following or static view
- Dynamically adjust zoom levels
- Modify appearance via a configuration file:
- Background, ball, and ground colors
- Ball radius and tracer size
- Name of the statistics output file
- Displays final flight parameters:
- Range, max height, and time to max height
- Saves simulation statistics to a specified file
- Set colors using
uint32
numbers (max value for white: 4294967295)
- S β Start movement
- G β Pause movement
- R β Restart the simulation
- Z β Zoom in
- X β Zoom out
- C β Center view on the ball
- V β Toggle ball-following view
Configuration file can be changed in config.txt file
stats_file=stats.txt
color_ball=252645375
color_background=2305343
color_ground=5980671
unit_to_px=50
ball_radius=20
view_change=50
tracer_radius=10
stats_file=stats.txt
color_ball=
color_background=
color_ground=
unit_to_px=
ball_radius=
view_change=
tracer_radius=