ID of this Component, unique within the Scene.
Components are mapped by this ID in {@link Scene.components}.
Arbitrary, user-defined metadata on this component.
The parent Scene that contains this Component.
The viewer that contains this Scene.
Gets the flight duration, in seconds, when calling CameraFlightAnimation.flyTo.
default value is 0.5.
New duration value.
Sets the flight duration, in seconds, when calling CameraFlightAnimation.flyTo.
Stops any flight currently in progress.
default value is 0.5.
Gets if, when CameraFlightAnimation is flying to a boundary, it will always adjust the distance between the Camera.eye and Camera.look so as to ensure that the target boundary is always filling the view volume.
When false, the eye will remain at its current distance from the look position.
Default value is true.
value Set true to activate this behaviour.
Sets if, when CameraFlightAnimation is flying to a boundary, it will always adjust the distance between the Camera.eye and Camera.look so as to ensure that the target boundary is always filling the view volume.
When false, the eye will remain at its current distance from the look position.
Default value is true.
Gets how much of the perspective field-of-view, in degrees, that a target Entity.aabb should fill the canvas when calling CameraFlightAnimation.flyTo or CameraFlightAnimation.jumpTo.
Default value is 45.
Current FOV value.
Sets how much of the perspective field-of-view, in degrees, that a target Entity.aabb should fill the canvas when calling CameraFlightAnimation.flyTo or CameraFlightAnimation.jumpTo.
Default value is 45.
Gets if this CameraFlightAnimation points the Camera in the direction that it is travelling when flying to a target after calling CameraFlightAnimation.flyTo.
Default value is true.
True if trailing behaviour is active.
Sets if this CameraFlightAnimation to point the Camera in the direction that it is travelling when flying to a target after calling CameraFlightAnimation.flyTo.
Default value is true.
Cancels an earlier flyTo without calling the arrival callback.
Destroys all Components that are owned by this. These are Components that were instantiated with this Component as their first constructor argument.
Destroys this component.
Logs an error for this component to the JavaScript console.
The console message will have this format: [ERROR] [<component type> =<component id>: <message>
Also fires the message as an "error" event on the parent Scene.
The message to log
Fires an event on this component.
Notifies existing subscribers to the event, optionally retains the event to give to any subsequent notifications on the event as they are made.
The event type name
The event parameters
Flies the Camera to a target.
Returns true if there are any subscribers to the given event on this component.
The event
True if there are any subscribers to the given event on this component.
Tests if this component is of the given type, or is a subclass of the given type.
Either a parameters object or a Component subtype that has a World-space AABB.
Logs a console debugging message for this component.
The console message will have this format: [LOG] [<component type> <component id>: <message>
Also fires the message as a "log" event on the parent Scene.
The message to log
Cancels an event subscription that was previously made with Component.on or Component.once.
Subscription ID
Subscribes to an event on this component.
The callback is be called with this component as scope.
The event
Called fired on the event
Handle to the subscription, which may be used to unsubscribe with .off.
Subscribes to the next occurrence of the given event, then un-subscribes as soon as the event is subIdd.
This is equivalent to calling Component.on, and then calling Component.off inside the callback function.
Data event to listen to
Called when fresh data is available at the event
Stops an earlier flyTo, fires arrival callback.
Logs a warning for this component to the JavaScript console.
The console message will have this format: [WARN] [<component type> =<component id>: <message>
Also fires the message as a "warn" event on the parent Scene.
The message to log
Generated using TypeDoc
Jumps or flies the Scene's Camera to a given target.