zoom

fun zoom(degrees: Double, instant: Boolean = false)(source)

Adjusts the camera's field of view (FOV) by the specified number of degrees. The transition can either happen instantly or be interpolated over time during updates.

Parameters

degrees

the number of degrees to adjust the field of view by

instant

whether the adjustment should occur instantly (default is false)