Skip to content

Simulates a marble rolling inside a sphere using Lagrangian mechanics

Notifications You must be signed in to change notification settings

lscholte/MarbleSphereSimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published