mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-21 03:29:40 -06:00
Feature/anchor and aim (#799)
Introduce the ability to navigate using an anchor and aim. Example use: Set spacecraft as anchor and planet as aim to always look down at a planet, while followin the spacecraft in its orbit.
This commit is contained in:
@@ -37,6 +37,9 @@ Scene* sceneGraph() {
|
||||
|
||||
SceneGraphNode* sceneGraphNode(const std::string& name) {
|
||||
const Scene* graph = sceneGraph();
|
||||
if (!graph) {
|
||||
return nullptr;
|
||||
}
|
||||
return graph->sceneGraphNode(name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user