Class: OrbitController

OrbitController

FloatController is a Component that allows moving an object (usually a camera) using mouse or touch around a central point.


new OrbitController(target)

Parameters:
Name Type Description
target Float4

The position around which to orbit.

Properties:
Name Type Description
radius number

The distance between the Entity and the lookAtTarget.

azimuth number

The azimuth coordinate of the object relative to the lookAtTarget.

polar number

The polar coordinate of the object relative to the lookAtTarget.

Author:
  • derschmale <http://www.derschmale.com>

Extends

Members


entity

The target entity.

Inherited From: