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

Method setScenePosition

testbed/src/Scene.cpp:51–59  ·  view source on GitHub ↗

Set the scene position (where the camera needs to look at)

Source from the content-addressed store, hash-verified

49
50// Set the scene position (where the camera needs to look at)
51void Scene::setScenePosition(const openglframework::Vector3& position, float sceneRadius) {
52
53 // Set the position and radius of the scene
54 mCenterScene = position;
55 mCamera.setSceneRadius(sceneRadius);
56
57 // Reset the camera position and zoom in order to view all the scene
58 resetCameraToViewAll();
59}
60
61// Set the camera so that we can view the whole scene
62void Scene::resetCameraToViewAll() {

Callers

nothing calls this directly

Calls 1

setSceneRadiusMethod · 0.80

Tested by

no test coverage detected