openspace.pathnavigation
Functions overview
Name |
Documentation |
---|---|
Continue playing a paused camera path |
|
Create a camera path as described by the lua table input argument |
|
Move the camera to the node with the specified identifier |
|
Move the camera to the node with the specified identifier |
|
Create a path to the navigation state described by the input table |
|
Returns true if a camera path is currently running, and false otherwise |
|
Fade rendering to black, jump to the specified navigation state, and then fade in |
|
Fade rendering to black, jump to the specified node, and then fade in |
|
Pause a playing camera path |
|
Immediately skips to the end of the current camera path, if one is being played |
|
Stops a path, if one is being played |
|
Fly linearly to a specific distance in relation to the focus node |
|
Fly linearly to a specific distance in relation to the focus node |
|
Zoom linearly to the current focus node, using the default distance |
Functions
continuePath
Continue playing a paused camera path.
Return type: void
openspace.pathnavigation.continuePath()
createPath
Create a camera path as described by the lua table input argument.
path
Table
Return type: void
openspace.pathnavigation.createPath(path)
flyTo
Move the camera to the node with the specified identifier. The optional double specifies the duration of the motion, in seconds. If the optional bool is set to true the target up vector for camera is set based on the target node. Either of the optional parameters can be left out.
nodeIdentifier
String
useUpFromTargetOrDuration
Boolean | Number?
duration
Number?
Return type: void
openspace.pathnavigation.flyTo(nodeIdentifier, useUpFromTargetOrDuration, duration)
flyToHeight
Move the camera to the node with the specified identifier. The second argument is the desired target height above the target node’s bounding sphere, in meters. The optional double specifies the duration of the motion, in seconds. If the optional bool is set to true, the target up vector for camera is set based on the target node. Either of the optional parameters can be left out.
nodeIdentifier
String
height
Number
useUpFromTargetOrDuration
Boolean | Number?
duration
Number?
Return type: void
openspace.pathnavigation.flyToHeight(nodeIdentifier, height, useUpFromTargetOrDuration, duration)
flyToNavigationState
Create a path to the navigation state described by the input table. The optional double specifies the target duration of the motion, in seconds. Note that roll must be included for the target up direction to be taken into account.
navigationState
Table
duration
Number?
Return type: void
openspace.pathnavigation.flyToNavigationState(navigationState, duration)
isFlying
Returns true if a camera path is currently running, and false otherwise.
Return type: Boolean
openspace.pathnavigation.isFlying()
jumpTo
Fade rendering to black, jump to the specified navigation state, and then fade in. This is done by triggering another script that handles the logic.
If no fade duration is specified, use the property from Navigation Handler
nodeIdentifier
String
fadeDuration
Number?
Return type: void
openspace.pathnavigation.jumpTo(nodeIdentifier, fadeDuration)
jumpToNavigationState
Fade rendering to black, jump to the specified node, and then fade in. This is done by triggering another script that handles the logic.
If no fade duration is specified, use the property from Navigation Handler
navigationState
Table
fadeDuration
Number?
Return type: void
openspace.pathnavigation.jumpToNavigationState(navigationState, fadeDuration)
pausePath
Pause a playing camera path.
Return type: void
openspace.pathnavigation.pausePath()
skipToEnd
Immediately skips to the end of the current camera path, if one is being played.
Return type: void
openspace.pathnavigation.skipToEnd()
stopPath
Stops a path, if one is being played.
Return type: void
openspace.pathnavigation.stopPath()
zoomToDistance
Fly linearly to a specific distance in relation to the focus node. The distance is given in meters above the bounding sphere of the current focus node. The optional input parameter specifies the duration for the motion, in seconds.
distance
Number
duration
Number?
Return type: void
openspace.pathnavigation.zoomToDistance(distance, duration)
zoomToDistanceRelative
Fly linearly to a specific distance in relation to the focus node. The distance is given as a multiple of the bounding sphere of the current focus node. That is, a value of 1 will result in a position at a distance of one times the size of the bounding sphere away from the object. The optional input parameter specifies the duration for the motion, in seconds.
distance
Number
duration
Number?
Return type: void
openspace.pathnavigation.zoomToDistanceRelative(distance, duration)
zoomToFocus
Zoom linearly to the current focus node, using the default distance. The optional input parameter specifies the duration for the motion, in seconds.
duration
Number?
Return type: void
openspace.pathnavigation.zoomToFocus(duration)