setView

fun setView(lookAt: Vector3, spherical: Spherical, fov: Double)(source)

Sets the view for the orbital camera by updating the look-at position, spherical coordinates, and field of view (FOV). This method initializes both the target and current states of these properties.

Parameters

lookAt

the target position the camera should look at, represented as a 3D vector

spherical

the spherical coordinates defining the camera's orientation

fov

the field of view (in degrees) for the camera