Skip to content

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

Notifications You must be signed in to change notification settings

dvemon/collisions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages