dvemon / collisions

Simulating the movement and collision of circles in a confined space using basic physics and circle-circle collision algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

collisions

simulating the movement and collision of circles in a confined space using basic physics and circle-circle collision algorithm

how to use

interact with the program by holding down the mouse button to draw a circle
when the mouse button is released, the circle will be added to the simulation

keybinds

  • A - render lines to show attractions to circles
  • R - reset the screen
  • ESC - exit the program
showcase.mp4

prerequisites

you will need to install these modules:

pip install pygame

to do

  • use a 2d vector class
  • add some debugging information (fps, circle count)
  • add a menu to toggle features and change colours

About

Simulating the movement and collision of circles in a confined space using basic physics and circle-circle collision algorithm.


Languages

Language:Python 100.0%