Camera constructor
Camera({})
Implementation
Camera({
Vector3? position,
double zoom = 1.0,
this.fov = 80.0,
this.near = 0.001,
this.far = 10000,
this.viewportWidth = 100.0,
this.viewportHeight = 100.0,
CameraControls? cameraControls,
}) {
if (position != null) position.copyInto(this.position);
this.cameraControls = cameraControls ?? CameraControls();
_zoom = zoom;
_zoomStart = zoom;
}