tilt

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

Attempts to tilt the camera by the specified amount in radians. Positive values tilt the camera down, negative values tilt the camera up. If the drag origin is not on the ellipsoid, no tilt is applied.

Parameters

camera

The camera to tilt.

target

The origin position to tilt around in world coordinates.

axis

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

amount

The amount to tilt the camera in radians. Positive values tilt the camera down, negative values tilt the camera up.

dt

The time delta in seconds since the last update. Value must be greater than 0.

ellipsoid

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

See also