Soften the plane's pitch to a realistic ~4° nose-up

The +0.20 (≈11°) climb angle from last commit looked cartoonishly
steep. Real airliners climb at maybe 3–5° once they've cleaned up
after takeoff. Cut targetPitch to 0.06 + p·0.02 (3.5° → 4.6°).
Roll/yaw untouched.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MVA Global Fret 2026-05-05 12:27:30 +02:00
parent 390e075371
commit 1aa18d92b8

View File

@ -136,9 +136,9 @@ function tick() {
planeHolder.position.set(px, py + bob, 0);
/* Banking — penche légèrement, nez vers le haut (montée) */
/* Banking — léger roulis + nez juste un peu relevé (cabré réaliste) */
const targetRoll = 0.18 + (p - 0.5) * 0.25; // .z = roulis
const targetPitch = 0.20 + p * 0.10; // .x = nez vers le haut (montée)
const targetPitch = 0.06 + p * 0.02; // .x = ~3.5° à 4.5° de cabré
const targetYaw = -(p - 0.5) * 0.10; // .y = soupçon de yaw
planeHolder.rotation.z += (targetRoll - planeHolder.rotation.z) * 0.08;
planeHolder.rotation.x += (targetPitch - planeHolder.rotation.x) * 0.08;