Constructor
| 32 | |
| 33 | // Constructor |
| 34 | CubesScene::CubesScene(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, 10, 0); |
| 39 | |
| 40 | // Set the center of the scene |
| 41 | setScenePosition(center, SCENE_RADIUS); |
| 42 | setInitZoom(1.5); |
| 43 | resetCameraToViewAll(); |
| 44 | |
| 45 | mWorldSettings.worldName = name; |
| 46 | } |
| 47 | |
| 48 | // Destructor |
| 49 | CubesScene::~CubesScene() { |
nothing calls this directly
no outgoing calls
no test coverage detected