Pause
Pausing the simulation
Usage
To pause the simulation, call the togglePause
method on the instance.
Calling it again will resume the simulation. togglePause
will also return a boolean value indicating whether the simulation is paused.
The togglePause
method takes in an optional boolean parameter drawWhilePaused
which determines whether splats will still be drawn when paused.
By default,
drawWhilePaused
is set to false