Skip to content

FriskIsGit/circle-collisions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Real time fully elastic collisions

animation1.mp4

Program arguments:

  • -r circle radius (int)
  • -c number of circles (int)
  • -w display width (int)
  • -h display height (int)
  • -draw draw lines

Controls:

  • Press space to stop/resume animation
  • Use left/right arrows to reverse/advance animation
  • Drag and drop circles to change their position
  • Press d to turn lines on and off
  • Press [ to save state to memory
  • Press ] to load state from memory
  • Press i to display this dialog

Collisions:

TODO

  • implement sweep and prune collision detection algorithm

About

2D collision physics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages