Set the scene position (where the camera needs to look at)
| 49 | |
| 50 | // Set the scene position (where the camera needs to look at) |
| 51 | void 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 |
| 62 | void Scene::resetCameraToViewAll() { |
nothing calls this directly
no test coverage detected