dollyIn

fun dollyIn(amount: Double = 1.0, instant: Boolean = false)(source)

Zooms the camera in by decreasing the distance to the target. The zoom is based on an exponential scale factor determined by the zoomSpeed field. If the instant parameter is set to true, the zoom effect is applied immediately; otherwise, it will interpolate the change over time.

Parameters

amount

a normalized value controlling the zoom intensity (default is 1.0)

instant

whether the zoom-in effect should occur instantly (default is false)