Name | Type | Description |
---|---|---|
scene |
Scene | The scene. |
Members
-
Default Value:
3.0
-
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 came 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
ScreenSpaceCameraController#lookEventTypes
不受限制。
-
Default Value:
90.0
-
Default Value:
Number.POSITIVE_INFINITY
-
Default Value:
15000.0
-
Default Value:
4000.0
-
Default Value:
150000.0
ScreenSpaceCameraController#lookEventTypes
不受限制。
-
Default Value:
-90.0
-
Default Value:
7500000.0
-
Default Value:
1.0
-
Default Value:
1.0
-
Default Value:
1.0
rotateEventTypes : CameraEventType|Array|undefined
The type came 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
ScreenSpaceCameraController#tiltEventTypes
。
tiltEventTypes : CameraEventType|Array|undefined
The type came 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
}]
ScreenSpaceCameraController#tiltEventTypes
。
-
Default Value:
false
translateEventTypes : CameraEventType|Array|undefined
The type came 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 came 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
]
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
.