AUTHOR . . . . . . . Shahar Ankonina
DESCRIPTION. . . Interactive 2D physics environment with collision detection and response
Physics Sandbox is an interactive 2D simulation environment built in C++ using SFML. Users can spawn objects, apply forces, and watch collisions play out in real time. The project demonstrates hands-on experience with collision detection, physics simulation, and object-oriented system design, while showcasing the ability to build responsive GUIs and optimize real-time performance.
- Interactive Object Spawning: Users can create multiple objects in the sandbox.
- Collision Detection & Response: Objects react realistically to collisions with one another.
- Real-Time Physics: Simulates motion, gravity, and momentum in a responsive environment.
- Optimized Performance: Handles multiple active entities while maintaining stable simulation.
- Customizable Environment: Physics parameters and object behaviors can be adjusted easily.
- Robots: Droids that move and emote at random
- Explosions: Simulates impulse from explosions
- Programming Languages: C++
- Libraries & Frameworks: SFML
- Tools & Platforms: Git/GitHub, Virtual Studio
- Download the folder
- Run R2D2 Interactable >> InteractableR2D2.exe
Interact with the sandbox:
- Spawn objects in the window.
- Observe real-time motion and collisions.
- Experiment with forces to see how objects respond dynamically.
Explore the code to understand physics logic, collision handling, and GUI rendering in C++ and SFML.
Controls:
- Click and hold to grab objects
- Click the buttons to spawn new objects
- Drag objects to the trash can in the top right corner to delete objects
- Press space to create an explosion around the curser