Skip to content

About

Simulates a marble rolling inside a sphere using Lagrangian mechanics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

MarbleSphereSimulation

A real-time simulation of a marble rolling inside a bowl (represented as a wireframe sphere) with OpenGL. This simulation has 4 generalized coordinates with 2 degrees of freedom.

How to Build and Run

First clone the repository. Remember to add the recursive option as there is a submodule that must also be cloned.

git clone --recursive https://github.com/lscholte/MarbleSphereSimulation.git

If you forget to add the recursive option, then execute the following from within your local copy of the repository:

git submodule update --init --recursive

Next, create an empty build directory wherever you like. It is suggested to create this directory outside of your local copy of the repository. Once created, navigate to the directory and execute

cmake <path to root of repository>

cmake --build .

If the build was successful, then you will have an executable named marbleSphereSimulation in your build directory. Execute it with

./marbleSphereSimulation

About

Simulates a marble rolling inside a sphere using Lagrangian mechanics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages