MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / togglePlayPauseSimulation

Method togglePlayPauseSimulation

testbed/src/TestbedApplication.h:247–255  ·  view source on GitHub ↗

Toggle play/pause for the simulation

Source from the content-addressed store, hash-verified

245
246// Toggle play/pause for the simulation
247inline void TestbedApplication::togglePlayPauseSimulation() {
248
249 if (mTimer.isRunning()) {
250 mTimer.stop();
251 }
252 else {
253 mTimer.start();
254 }
255}
256
257// Play the simulation
258inline void TestbedApplication::playSimulation() {

Callers

nothing calls this directly

Calls 3

isRunningMethod · 0.80
stopMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected