Skip to content

Project simulates physics in a sandbox-like environment

Notifications You must be signed in to change notification settings

AnkoninaShahar/Physics-Sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Physics Sandbox

AUTHOR . . . . . . . Shahar Ankonina
DESCRIPTION. . . Interactive 2D physics environment with collision detection and response


About

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.


Features

  • 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

Tech Stack

  • Programming Languages: C++
  • Libraries & Frameworks: SFML
  • Tools & Platforms: Git/GitHub, Virtual Studio

Installation

  1. Download the folder
  2. Run R2D2 Interactable >> InteractableR2D2.exe

Usage

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
image image

About

Project simulates physics in a sandbox-like environment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages