OrbitCameraController constructor
OrbitCameraController({
- Vector3? target,
- double distance = 6.0,
- double azimuth = 0.0,
- double polar = 0.3,
- double minDistance = 0.1,
- double maxDistance = double.infinity,
- double minPolar = -_polarLimit,
- double maxPolar = _polarLimit,
- double rotateSpeed = math.pi,
- double dollySpeed = 0.15,
- double panSpeed = 1.0,
- double scrollSensitivity = 1 / 120,
- double smoothing = 0.12,
Creates an orbit controller framing target from distance at the given
azimuth and polar angles (radians).
Implementation
OrbitCameraController({
Vector3? target,
double distance = 6.0,
double azimuth = 0.0,
double polar = 0.3,
this.minDistance = 0.1,
this.maxDistance = double.infinity,
this.minPolar = -_polarLimit,
this.maxPolar = _polarLimit,
this.rotateSpeed = math.pi,
this.dollySpeed = 0.15,
this.panSpeed = 1.0,
this.scrollSensitivity = 1 / 120,
super.smoothing,
}) : _target = (target ?? Vector3.zero()).clone(),
_targetGoal = (target ?? Vector3.zero()).clone(),
_distance = distance,
_distanceGoal = distance,
_azimuth = azimuth,
_azimuthGoal = azimuth,
_polar = polar.clamp(minPolar, maxPolar),
_polarGoal = polar.clamp(minPolar, maxPolar);