dollyTo

fun dollyTo(distance: Double, instant: Boolean = false)(source)

Adjusts the camera's distance (radius) to the specified value. If the instant parameter is set to true, the distance change is applied immediately; otherwise, it will be interpolated over time during updates.

Parameters

distance

the target distance (radius) that the camera should move to

instant

whether the distance adjustment should occur instantly (default is false)