scaleTo

fun scaleTo(scale: Double, instant: Boolean = false)(source)

Adjusts the camera's scaling factor to the specified value. The scaling can either be applied instantly or interpolated over time during updates.

Parameters

scale

the target scaling factor for the camera

instant

whether the scaling should be applied instantly (default is false)