/botsen

Collision Simulator to Demonstrate Elastic and Inelastic Collisions

Primary LanguageC++MIT LicenseMIT

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