Demonstrates the use of the dat-gui library to add controls to a simulation. dat-gui is set up to easily set properties on a JavaScript object that have a simple data type (string, number, etc.). Therefore it is often convenient to make a controller object, as in this example, that captures all the parameters dat-gui will set.

example 27: dat-gui