Skip to main content

ViewerCamera

Index

Constructors

publicconstructor

Properties

publicreadonlyactiveCamera

activeCamera: PivotTargetCamera

publicstaticreadonlycameraMinZ

cameraMinZ: 0.01 = 0.01

Accessors

publicforwardVector

  • get forwardVector(): Vector3
  • Returns Vector3

publicmaxZ

  • get maxZ(): number
  • set maxZ(n: number): void
  • Returns number

  • Parameters

    • n: number

    Returns void

publicminZ

  • get minZ(): number
  • set minZ(n: number): void
  • Returns number

  • Parameters

    • n: number

    Returns void

publicmode

publicoptions

publicposition

  • get position(): Vector3
  • set position(position: Vector3): void
  • Returns Vector3

  • Parameters

    • position: Vector3

    Returns void

publicprojection

publictarget

  • get target(): Vector3
  • set target(target: Vector3): void
  • Returns Vector3

  • Parameters

    • target: Vector3

    Returns void

publictopDownMode

  • get topDownMode(): boolean
  • set topDownMode(topDownMode: boolean): void
  • Returns boolean

  • Parameters

    • topDownMode: boolean

    Returns void

Methods

publicattachBehavior

  • attachBehavior(behavior: TwinfinityCameraBehavior): boolean
  • Attaches a behavior to the camera.


    Parameters

    • behavior: TwinfinityCameraBehavior

      The behavior to be attached to the camera.

    Returns boolean

    true if the behavior was successfully attached to the camera, otherwise false.

publicclearPivot

  • clearPivot(): void
  • Returns void

publicdetachBehavior

  • detachBehavior(behavior: TwinfinityCameraBehavior): boolean
  • Detaches a behavior from the camera.


    Parameters

    • behavior: TwinfinityCameraBehavior

      The behavior to be detached from the camera.

    Returns boolean

    true if the behavior was successfully detached to the camera, otherwise false.

publicpick

publicsetPivot

  • setPivot(mode: PivotMode, pivot?: Vector3): void
  • Parameters

    Returns void

publiczoomToExtent