mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-24 22:09:10 -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:
@@ -29,6 +29,7 @@
|
||||
#include <openspace/engine/globals.h>
|
||||
#include <openspace/engine/windowdelegate.h>
|
||||
#include <openspace/interaction/navigationhandler.h>
|
||||
#include <openspace/interaction/orbitalnavigator.h>
|
||||
#include <openspace/rendering/renderengine.h>
|
||||
#include <openspace/scene/scene.h>
|
||||
#include <openspace/util/timemanager.h>
|
||||
@@ -763,8 +764,10 @@ void RenderableFieldlinesSequence::definePropertyCallbackFunctions() {
|
||||
));
|
||||
return;
|
||||
}
|
||||
global::navigationHandler.setFocusNode(node->parent());
|
||||
global::navigationHandler.resetCameraDirection();
|
||||
global::navigationHandler.orbitalNavigator().setFocusNode(
|
||||
node->parent()->identifier()
|
||||
);
|
||||
global::navigationHandler.orbitalNavigator().startRetargetAnchor();
|
||||
});
|
||||
|
||||
_pJumpToStartBtn.onChange([this] {
|
||||
|
||||
Reference in New Issue
Block a user