Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CameraOrbitControl

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

Hierarchy

  • CameraOrbitControl

Index

Constructors

constructor

Properties

allowControl

allowControl: boolean = true

Allows the camera to be controlled by user.

camera

camera: Camera = Camera.main

target

target: { x: number; y: number; z: number } = ...

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

Type declaration

  • x: number
  • y: number
  • z: number

Accessors

angles

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

    Returns ObservablePoint<undefined>

distance

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

Methods

updateCamera

  • updateCamera(): void

Generated using TypeDoc