dollyOut method

dynamic dollyOut(
  1. dynamic dollyScale
)

Implementation

dollyOut(dollyScale) {
  if (scope.object is PerspectiveCamera) {
    scale /= dollyScale;
  } else if (scope.object is OrthographicCamera) {
    scope.object.zoom = Math.max(scope.minZoom,
        Math.min(scope.maxZoom, scope.object.zoom * dollyScale));
    scope.object.updateProjectionMatrix();
    zoomChanged = true;
  } else {
    print(
        'WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.');
    scope.enableZoom = false;
  }
}