new ScreenSpaceCameraController(scene)
Parameters:
| Name | Type | Description | 
|---|---|---|
| scene | Scene | The scene. | 
Members
bounceAnimationTime :Number
Type:
- Number
- Default Value:
- 3.0
 
- Source:
enableCollisionDetection :Boolean
Type:
- Boolean
- Default Value:
- true
 
- Source:
enableInputs :Boolean
Type:
- Boolean
- Default Value:
- true
 
- Source:
enableLook :Boolean
Type:
- Boolean
- Default Value:
- true
 
- Source:
enableRotate :Boolean
Type:
- Boolean
- Default Value:
- true
 
- Source:
enableTilt :Boolean
Type:
- Boolean
- Default Value:
- true
 
- Source:
enableTranslate :Boolean
Type:
- Boolean
- Default Value:
- true
 
- Source:
enableZoom :Boolean
Type:
- Boolean
- Default Value:
- true
 
- Source:
inertiaSpin :Number
[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.
Type:
- Number
- Default Value:
- 0.9
 
- Source:
inertiaTranslate :Number
[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.
Type:
- Number
- Default Value:
- 0.9
 
- Source:
inertiaZoom :Number
[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.
Type:
- Number
- Default Value:
- 0.8
 
- Source:
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.
Type:
- CameraEventType | Array | undefined
- Default Value:
- { eventType : CameraEventType.LEFT_DRAG, modifier :KeyboardEventModifier.SHIFT}
 
- { eventType : 
- Source:
maximumMovementRatio :Number
[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.
Type:
- Number
- Default Value:
- 0.1
 
- Source:
maximumZoomDistance :Number
Type:
- Number
- Default Value:
- Number.POSITIVE_INFINITY
 
- Source:
minimumCollisionTerrainHeight :Number
Type:
- Number
- Default Value:
- 10000.0
 
- Source:
minimumPickingTerrainHeight :Number
Type:
- Number
- Default Value:
- 150000.0
 
- Source:
minimumTrackBallHeight :Number
Type:
- Number
- Default Value:
- 7500000.0
 
- Source:
minimumZoomDistance :Number
Type:
- Number
- Default Value:
- 20.0
 
- Source:
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.
Type:
- CameraEventType | Array | undefined
- Default Value:
- CameraEventType.LEFT_DRAG
 
- Source:
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.
Type:
- CameraEventType | Array | undefined
- Default Value:
- [CameraEventType.MIDDLE_DRAG,CameraEventType.PINCH, { eventType :CameraEventType.LEFT_DRAG, modifier :KeyboardEventModifier.CTRL}, { eventType :CameraEventType.RIGHT_DRAG, modifier :KeyboardEventModifier.CTRL}]
 
- [
- Source:
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.
Type:
- CameraEventType | Array | undefined
- Default Value:
- CameraEventType.LEFT_DRAG
 
- Source:
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.
Type:
- CameraEventType | Array | undefined
- Default Value:
- [CameraEventType.RIGHT_DRAG,CameraEventType.WHEEL,CameraEventType.PINCH]
 
- [
- Source:
Methods
destroy() → {undefined}
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.
- Source:
- See:
Throws:
- 
        This object was destroyed, i.e., destroy() was called.
- Type
- DeveloperError
Returns:
- Type
- undefined
Example
controller = controller && controller.destroy();isDestroyed() → {Boolean}
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.
- Type
- Boolean