Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CameraOrbitControl

Allows the user to control the camera by orbiting the target.

Hierarchy

  • CameraOrbitControl

Index

Constructors

Properties

Accessors

Methods

Object literals

Constructors

constructor

Properties

Private _angles

_angles: ObservablePoint = new PIXI.ObservablePoint(() => {this._angles.x = Math.min(Math.max(-85, this._angles.x), 85)}, undefined, 0, 180)

Private _distance

_distance: number = 5

allowControl

allowControl: boolean = true

Allows the camera to be controlled.

camera

camera: Camera

Camera to control. If not set, the main camera will be used by default.

Accessors

angles

  • get angles(): ObservablePoint
  • Orientation euler angles (x-axis and y-axis). The angle for the x-axis will be clamped between -85 and 85 degrees.

    Returns ObservablePoint

distance

  • get distance(): number
  • set distance(value: number): void

Methods

updateCamera

  • updateCamera(): void

Object literals

target

target: object

Target position (x, y, z) to orbit.

x

x: number = 0

y

y: number = 0

z

z: number = 0

Generated using TypeDoc