orbit

fun orbit(camera: Camera, target: Cartesian3, axis: Cartesian3, amount: Double, dt: Double, ellipsoid: Ellipsoid? = definedExternally)(source)

Attempts to orbit the camera around the specified origin by the specified amount in radians. Positive values orbit the camera clockwise, negative values orbit the camera counterclockwise. If the drag origin is not on the ellipsoid, no orbit is applied.

Parameters

camera

The camera to orbit.

target

The origin position to orbit around in world coordinates.

axis

The axis to orbit around, typically the negative of the surface normal at the target position.

amount

The amount to orbit the camera in radians. Positive values orbit the camera clockwise, negative values orbit the camera counterclockwise.

dt

The time delta in seconds since the last update.

ellipsoid

The ellipsoid to pick for the orbit origin. If undefined, the default ellipsoid is used. Default value - Ellipsoid.default

See also