FlyCameraController constructor
FlyCameraController({})
Creates a fly controller starting at position with the given yaw and
pitch (radians).
Implementation
FlyCameraController({
Vector3? position,
double yaw = 0.0,
double pitch = 0.0,
this.speed = 5.0,
this.boostMultiplier = 4.0,
this.lookSensitivity = 0.005,
this.movementSmoothing = 0.0,
this.moveVertical = true,
this.pitchLimit = _defaultPitchLimit,
super.smoothing = 0.0,
}) : _position = (position ?? Vector3(0.0, 2.0, 5.0)).clone(),
_yaw = yaw,
_yawGoal = yaw,
_pitch = pitch.clamp(-_defaultPitchLimit, _defaultPitchLimit),
_pitchGoal = pitch.clamp(-_defaultPitchLimit, _defaultPitchLimit);