camera property

Camera? get camera

The currently active Camera, or null if not set.

Implementation

Camera? get camera => _camera;
set camera (Camera? camera)

Sets the active Camera and updates matrices.

Implementation

set camera(Camera? camera) {
  if (camera == _camera) return;
  _camera = camera;
  _updateViewMatrix();
  _updateProjectionMatrix();
}