Constructor
| 32 | |
| 33 | // Constructor |
| 34 | CubeStackScene::CubeStackScene(const std::string& name, EngineSettings& settings, reactphysics3d::PhysicsCommon& physicsCommon) |
| 35 | : SceneDemo(name, settings, physicsCommon, true) { |
| 36 | |
| 37 | // Compute the radius and the center of the scene |
| 38 | openglframework::Vector3 center(0, 16, 0); |
| 39 | |
| 40 | // Set the center of the scene |
| 41 | setScenePosition(center, SCENE_RADIUS); |
| 42 | setInitZoom(1.9); |
| 43 | resetCameraToViewAll(); |
| 44 | |
| 45 | mWorldSettings.worldName = name; |
| 46 | } |
| 47 | |
| 48 | // Create the physics world |
| 49 | void CubeStackScene::createPhysicsWorld() { |
nothing calls this directly
no outgoing calls
no test coverage detected