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

Method reset

testbed/src/Scene.h:306–309  ·  view source on GitHub ↗

Reset the scene

Source from the content-addressed store, hash-verified

304
305// Reset the scene
306inline void Scene::reset() {
307 mEngineSettings.elapsedTime = std::chrono::milliseconds::zero();
308 mSnapshotsContactPoints.clear();
309}
310
311// Return a reference to the camera
312inline const openglframework::Camera& Scene::getCamera() const {

Callers 2

switchSceneMethod · 0.45
restartSimulationMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by 2

switchSceneMethod · 0.36
restartSimulationMethod · 0.36