PLEASE DOUBLE CLICK THE GREEN FLAG BEFORE STARTING -OBJECT INTERACTION (LEFT SIDE)- 1. Click the ball button and place objects in the scene (limit 3 objects). 2. Use the cursor button to select different objects. 3. Use the red X button to delete objects. -TIME CONTROL (BOTTOM LEFT)- 4. Click the green button to play the simulation. 5. Click the yellow button to pause the simulation. 6. Click the red button to delete all objects and reset the simulation. 7. Click the blue button to step forward by 0.1 seconds. -GRAVITY CONTROL (TOP RIGHT)- 8. Use the slider to change the magnitude of the force of gravity. 9. Use the arrow buttons under the slider to change the direction of gravity. -COMPONENT DISPLAY (TOP/TOP LEFT)- 10. The variables in the top left show the components of the selected object. 11. The area in the top middle shows the vectors for the selected object's velocity (in blue) and acceleration (in red).
DISCLAIMER: This project is not perfect, and there are still a couple bugs present; the most common bug occurs when an object collides with a wall in a very specific way such that the object passes through the wall and goes through infinite collision checks. Having more objects in the scene will increase the risk of bugs occurring. This project is a tool for understanding how physics works with simple objects in a controlled scene. It is helpful for visualizing the kinematic components (position, velocity, and acceleration) of a given object. I made this project in 3 weeks for my AP Computer Science Principles exam. I originally planned to have even more features than it currently has (such as box objects, different scenes, and the ability to manually change components), but those proved to be too complex to properly implement in time. Still, I am quite proud of how this project turned out.