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

Method CubesScene

testbed/scenes/cubes/CubesScene.cpp:34–46  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

32
33// Constructor
34CubesScene::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
49CubesScene::~CubesScene() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected