updateMatrixState method

dynamic updateMatrixState()

Update camera and gizmos state

Implementation

updateMatrixState() {
  //update camera and gizmos state
  _cameraMatrixState.copy(camera.matrix);
  _gizmoMatrixState.copy(_gizmos.matrix);

  if (camera is OrthographicCamera) {
    _cameraProjectionState.copy(camera.projectionMatrix);
    camera.updateProjectionMatrix();
    _zoomState = camera.zoom;
  } else if (camera is PerspectiveCamera) {
    _fovState = camera.fov;
  }
}