look method
Rotates the view by a drag delta (logical pixels). Horizontal drags turn, vertical drags pitch (clamped short of vertical).
Implementation
void look(Offset delta) {
_yawGoal += delta.dx * lookSensitivity;
_pitchGoal = (_pitchGoal - delta.dy * lookSensitivity).clamp(
-pitchLimit,
pitchLimit,
);
}