| Name | Type | Description |
|---|---|---|
scene |
Scene | The scene. |
Members
-
Default Value:
3.0
maximumZoomDistance and minimumZoomDistance are ignored.
Also used in conjunction with Cesium3DTileset#enableCollision to prevent the camera from moving through or below a 3D Tileset surface.
This may also affect clamping behavior when using HeightReference.CLAMP_TO_GROUND on 3D Tiles.
-
Default Value:
true
-
Default Value:
true
-
Default Value:
true
-
Default Value:
true
-
Default Value:
true
-
Default Value:
true
-
Default Value:
true
[0, 1) used to determine how long
the camera will continue to spin because of inertia.
With value of zero, the camera will have no inertia.
-
Default Value:
0.9
[0, 1) used to determine how long
the camera will continue to translate because of inertia.
With value of zero, the camera will have no inertia.
-
Default Value:
0.9
[0, 1) used to determine how long
the camera will continue to zoom because of inertia.
With value of zero, the camera will have no inertia.
-
Default Value:
0.8
lookEventTypes : CameraEventType|Array|undefined
The type can be a CameraEventType, undefined, an object with eventType
and modifier properties with types CameraEventType and KeyboardEventModifier,
or an array of any of the preceding.
-
Default Value:
{ eventType : CameraEventType.LEFT_DRAG, modifier : KeyboardEventModifier.SHIFT }
[0, 1) used to limit the range
of various user inputs to a percentage of the window width/height per animation frame.
This helps keep the camera under control in low-frame-rate situations.
-
Default Value:
0.1
undefined, the angle of the camera tilt is unrestricted.
-
Default Value:
undefined
Example:
// Prevent the camera from tilting below the ellipsoid surface
viewer.scene.screenSpaceCameraController.maximumTiltAngle = Math.PI / 2.0;
-
Default Value:
Number.POSITIVE_INFINITY
-
Default Value:
15000.0 or scene.ellipsoid.minimumRadius * 0.0025.
-
Default Value:
4000.0 or scene.ellipsoid.minimumRadius * 0.00063
-
Default Value:
150000.0 or scene.ellipsoid.minimumRadius * 0.025
-
Default Value:
7500000.0 or scene.ellipsoid.minimumRadius * 1.175
-
Default Value:
1.0
rotateEventTypes : CameraEventType|Array|undefined
The type can be a CameraEventType, undefined, an object with eventType
and modifier properties with types CameraEventType and KeyboardEventModifier,
or an array of any of the preceding.
-
Default Value:
CameraEventType.LEFT_DRAG
tiltEventTypes : CameraEventType|Array|undefined
The type can be a CameraEventType, undefined, an object with eventType
and modifier properties with types CameraEventType and KeyboardEventModifier,
or an array of any of the preceding.
-
Default Value:
[CameraEventType.MIDDLE_DRAG, CameraEventType.PINCH, {
eventType : CameraEventType.LEFT_DRAG,
modifier : KeyboardEventModifier.CTRL
}, {
eventType : CameraEventType.RIGHT_DRAG,
modifier : KeyboardEventModifier.CTRL
}]
translateEventTypes : CameraEventType|Array|undefined
The type can be a CameraEventType, undefined, an object with eventType
and modifier properties with types CameraEventType and KeyboardEventModifier,
or an array of any of the preceding.
-
Default Value:
CameraEventType.LEFT_DRAG
zoomEventTypes : CameraEventType|Array|undefined
The type can be a CameraEventType, undefined, an object with eventType
and modifier properties with types CameraEventType and KeyboardEventModifier,
or an array of any of the preceding.
-
Default Value:
[CameraEventType.RIGHT_DRAG, CameraEventType.WHEEL, CameraEventType.PINCH]
-
Default Value:
5.0
Methods
Once an object is destroyed, it should not be used; calling any function other than
isDestroyed will result in a DeveloperError exception. Therefore,
assign the return value (undefined) to the object as done in the example.
Throws:
-
DeveloperError : This object was destroyed, i.e., destroy() was called.
Example:
controller = controller && controller.destroy();
See:
If this object was destroyed, it should not be used; calling any function other than
isDestroyed will result in a DeveloperError exception.
Returns:
true if this object was destroyed; otherwise, false.
