Skip to content

Collision Simulator to Demonstrate Elastic and Inelastic Collisions

License

Notifications You must be signed in to change notification settings

huttongrabiel/botsen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

Botsen

A collision simulator. The collisions are simple. Two balls moving towards each other will collide according to their properties and the settings of the user.

In classical mechanics there are three types of collisions: elastic, inelastic, and totally inelastic.

Runnning the Code

First install raylib

Then within the directory for Botsen

mkdir build && cd build
cmake ../src
make -j
./Botsen

See it run!

botsen.mov

TODO

  • Add support for elastic collisions
  • Add support for inelastic collisions
  • Add support for totally inelastic collisions
  • Allow user to specify collision type before beginning collision
  • Allow user to 'throw', using mouse, balls at one another to cause collision
  • Keep balls within the frame and have them bounce of the sides

About

Collision Simulator to Demonstrate Elastic and Inelastic Collisions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published