Class PerspectiveCamera2

Hierarchy

Implements

Constructors

Properties

_camUi: UiObjectConfig<any, string, any>[] = ...
_canvas?: HTMLCanvasElement

It should be the canvas actually

_controls?: ICameraControls<string>
_controlsCtors: Map<string, TControlsCtor> = ...
_currentControlsMode: string = ''
_interactionsEnabled: boolean = true
_positionWorld: Vector3 = ...
activateMain: ((this, options?, _internal?, _refresh?) => void) = iCameraCommons.activateMain

Type declaration

add: ((...object) => PerspectiveCamera2)

Type declaration

assetType: "camera" = ...
autoAspect: boolean

Automatically manage aspect ratio based on window/canvas size. Defaults to true if domElement(canvas) is set.

autoNearFar: boolean = true

Automatically manage near and far clipping planes based on scene size.

clone: ((recursive?) => PerspectiveCamera2)

Type declaration

controlsMode: string
copy: ((source, recursive?, distanceFromTarget?, worldSpace?) => PerspectiveCamera2)

Type declaration

deactivateMain: ((this, options?, _internal?, _refresh?) => void) = iCameraCommons.deactivateMain

Type declaration

dispatchEvent: ((event) => void)

Type declaration

far: number = 50

Far clipping plane. This is managed by RootScene for active cameras To change the maximum that's possible set maxFarPlane To use a fixed value set autoNearFar to false and set maxFarPlane

focus: number
fov: number
getObjectById: (<T>(id) => undefined | T)

Type declaration

getObjectByName: (<T>(name) => undefined | T)

Type declaration

getObjectByProperty: (<T>(name, value) => undefined | T)

Type declaration

maxFarPlane: number = 1000

Maximum far clipping plane allowed. (Distance from camera)

minNearPlane: number = 0.5

Minimum near clipping plane allowed. (Distance from camera)

Default

0.2
name: string
near: number = 0.01

Near clipping plane. This is managed by RootScene for active cameras To change the minimum that's possible set minNearPlane To use a fixed value set autoNearFar to false and set minNearPlane

position: Vector3

Local position of camera.

refreshTarget: ((this, distanceFromTarget?, setDirty?) => void) = iCameraCommons.refreshTarget

Type declaration

refreshUi: ((this) => void) = iCameraCommons.refreshUi

Type declaration

remove: ((...object) => PerspectiveCamera2)

Type declaration

target: Vector3 = ...

Target of camera, in world(global) coordinates.

traverse: ((callback) => void)

Type declaration

traverseAncestors: ((callback) => void)

Type declaration

traverseVisible: ((callback) => void)

Type declaration

uiConfig: UiObjectConfig<any, string, any> = ...
userData: ICameraUserData = {}
visible: boolean
zoom: number

Accessors

Methods

  • Serializes this camera with controls to JSON.

    Parameters

    • Optional meta: any

      metadata for serialization

    • baseOnly: boolean = false

      Calls only super.toJSON, does internal three.js serialization. Set it to true only if you know what you are doing.

    Returns any

Generated using TypeDoc