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

Method reset

testbed/scenes/rope/RopeScene.cpp:281–291  ·  view source on GitHub ↗

Reset the scene

Source from the content-addressed store, hash-verified

279
280// Reset the scene
281void RopeScene::reset() {
282
283 SceneDemo::reset();
284
285 nbIterations = 0;
286
287 destroyPhysicsWorld();
288 createPhysicsWorld();
289 initBodiesPositions();
290 moveFirstRopeToHorizontalPosition();
291}
292
293/// Update the physics world (take a simulation step)
294/// Can be called several times per frame

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected