Engine API Reference - v2.24.0-beta.33
    Preparing search index...

    Class OrbitControllerAlpha

    The orbit controller. The pose orbits a focus point at a distance: rotate deltas turn the view around the focus within yawRange and pitchRange, the first two move components pan the focus point, and the third scales the distance within zoomRange. Motion is smoothed with rotateDamping, moveDamping and zoomDamping. With horizontalPan, the pan moves the focus point across the ground instead of the plane of the view.

    Hierarchy (View Summary)

    Index
    _pose: Pose = ...
    horizontalPan: boolean = false

    Whether the pan moves the focus point across the horizontal plane, as when dragging a map, instead of across the plane of the view. The first two move components are then the distances to move the focus point to the right and forward, level with the ground, so the height of the focus point does not change. Default is false.

    moveDamping: number = 0.98

    The movement damping. In the range 0 to 1, where a value of 0 means no damping and 1 means full damping. Default is 0.98.

    rotateDamping: number = 0.98

    The rotation damping. In the range 0 to 1, where a value of 0 means no damping and 1 means full damping. Default is 0.98.

    zoomDamping: number = 0.98

    The zoom damping. A higher value means more damping. A value of 0 means no damping.