FollowCameraController constructor

FollowCameraController({
  1. Node? followTarget,
  2. double distance = 9.0,
  3. double lookHeight = 1.4,
  4. double yaw = 0.0,
  5. double pitch = 0.42,
  6. double minPitch = -0.15,
  7. double maxPitch = 1.3,
  8. double minDistance = 0.5,
  9. double maxDistance = double.infinity,
  10. double rotateSpeed = math.pi,
  11. double dollySpeed = 0.15,
  12. double scrollSensitivity = 1 / 120,
  13. double smoothing = 0.08,
})

Creates a follow controller trailing followTarget.

Implementation

FollowCameraController({
  this.followTarget,
  this.distance = 9.0,
  this.lookHeight = 1.4,
  double yaw = 0.0,
  double pitch = 0.42,
  this.minPitch = -0.15,
  this.maxPitch = 1.3,
  this.minDistance = 0.5,
  this.maxDistance = double.infinity,
  this.rotateSpeed = math.pi,
  this.dollySpeed = 0.15,
  this.scrollSensitivity = 1 / 120,
  super.smoothing = 0.08,
}) : _yaw = yaw,
     _pitch = pitch.clamp(minPitch, maxPitch);