FollowCameraController constructor
FollowCameraController({
- Node? followTarget,
- double distance = 9.0,
- double lookHeight = 1.4,
- double yaw = 0.0,
- double pitch = 0.42,
- double minPitch = -0.15,
- double maxPitch = 1.3,
- double minDistance = 0.5,
- double maxDistance = double.infinity,
- double rotateSpeed = math.pi,
- double dollySpeed = 0.15,
- double scrollSensitivity = 1 / 120,
- 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);