Lycan-KRL / Simple-Physics-Simulator

Several weeks of work later, and I figured out a simple physics simulator where you get to throw around some colorful balls! The math was quite tricky to rationalize, but I managed to work with it and make this neat environment. Make sure to have SFML, and have some fun!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple-Physics-Simulator

Alright! I got something working to demonstrate a rigid body simulator utilizing a trignometric system.

The bodies I used were the CircleShapes of SFML to simplify a few ideas concerning collisions and boundary checking.

There are a few neat things I've implemented to create an amusing experience showing objects fly around, including the option to add more circles and being able to pick up an object and throw it.

Make sure to have SFML installed to be able to run this program.

Available Commands

  • 'N' adds a new object
  • 'Q' is a shortcut to terminate the program
  • Left-Click and hold onto a circle to be able to pick it up

Tools Used

  • Mingw32 Terminal
  • SFML
  • VSCode

About

Several weeks of work later, and I figured out a simple physics simulator where you get to throw around some colorful balls! The math was quite tricky to rationalize, but I managed to work with it and make this neat environment. Make sure to have SFML, and have some fun!


Languages

Language:C++ 96.4%Language:Makefile 3.6%