Reset the scene
| 279 | |
| 280 | // Reset the scene |
| 281 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected