Skip to content

Physics-based simulation of multiple balls colliding within a circular boundary, featuring real-time user interactions. Includes ball creation, collision handling, and customizable visuals.

License

Notifications You must be signed in to change notification settings

Fiend-Star/multiBody-simulation

Repository files navigation

This project simulates bouncing balls within a bounded area using the Pygame library. The simulation includes handling ball creation, boundary collisions, ball collisions, and real-time user interactions

Controls P: Pause/Resume the simulation. T: Toggle ball trails. Space: Start the simulation after loading.

Project Structure game.py: Main script to initialize and run the simulation. ball_initialization.py: Contains logic for initializing balls. constants.py: Defines various constants used throughout the project. event_loop.py: Manages the main event loop of the simulation. events.py: Handles user input events. game_objects.py: Defines game objects like Ball, BallPool, and BigCircle. graphics.py: Contains functions related to rendering graphics on the screen. logging_setup.py: Sets up logging configuration. physics.py: Contains the physics logic for handling ball motions and collisions.

About

Physics-based simulation of multiple balls colliding within a circular boundary, featuring real-time user interactions. Includes ball creation, collision handling, and customizable visuals.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages