Initializes a new instance of SGFlyThrough object.
SGFlyThrough(obj, [waitOnPoint],[vieweingDistance],[vieweingDirection])
Parameter |
Description |
obj |
Represents a set of places through which the fly through should pass. Can be one of the following: Array that contain SGNode, SGPosition, SGCoord2D, SGCoord3D or a combination of the above. SGNode. If the SGNode represents a group, the fly through will fly through the nodes children. |
waitOnPoint |
Optional, default: 1500 Time (in milliseconds) the camera would wait when it arrives to a new waypoint before continuing to the next waypoint. |
vieweingDistance |
Optional, default: undefined If set, determine the distance (in meters) from which the camera will view the waypoint. If the viewing distance is not set, the camera will use the viewing distance set in each of the waypoints. |
vieweingDirection |
Optional, default: undefined If set, determine the direction (in degree) from which the camera will view the waypoint. If the viewing direction is not set, the camera will use the viewing direction set in each of the waypoints. If the viewing direction of each waypoint is not set, the fly through will arrive a waypoint while faced to the next waypoint. |
Remarks
The default fly through is created with a waiting time between waypoints of 1.5 second and arrives at each waypoint facing the next waypoint (unless specified otherwise in the waypoint).