Class OrbitCameraController

OrbitCameraController is a camera controller that allows the user to orbit around a target.

Hierarchy (view full)

Implements

Constructors

Properties

__targetEntities: ISceneGraphEntity[] = []
aabbWithSkeletal: boolean = true
autoCalculateZNearAndZFar: boolean = true
autoUpdate: boolean = true
dollyScale: number = 2.0
followTargetAABB: boolean = false
moveSpeed: number = 1
scaleOfLengthCenterToCamera: number = 1.0
useInitialTargetAABBForLength: boolean = false
zFarScalingFactor: number = 100000
zNearMax: number = 0.1

Accessors

Methods

  • Internal

    Controls parallel translation based on mouse/touch movement.

    Parameters

    • originalX: number

      Original X position

    • originalY: number

      Original Y position

    • currentX: number

      Current X position

    • currentY: number

      Current Y position

    Returns void

  • Internal

    Controls rotation based on mouse/touch movement.

    Parameters

    • originalX: number

      Original X position

    • originalY: number

      Original Y position

    • currentX: number

      Current X position

    • currentY: number

      Current Y position

    Returns void

  • Internal

    Controls zoom/dolly based on mouse movement.

    Parameters

    • originalValue: number

      Original position value

    • currentValue: number

      Current position value

    Returns void