lookAtWorldPosition

fun lookAtWorldPosition(target: Cartesian3, ellipsoid: Ellipsoid? = definedExternally)(source)

Sets the camera orientation to look at a target position in world coordinates. The camera's up vector will be oriented to the world up vector at the target position. If the camera is at the target position, the camera will be oriented to the world up vector at the target position.

Parameters

target

The target position in world coordinates.

ellipsoid

The ellipsoid to use for determining the world up. Default value - Ellipsoid.default

See also