From 710551082ca8c288e5cb13334babccb006e155e3 Mon Sep 17 00:00:00 2001 From: MVA Global Fret Date: Tue, 5 May 2026 12:29:12 +0200 Subject: [PATCH] =?UTF-8?q?Flip=20pitch=20sign=20=E2=80=94=20turns=20out?= =?UTF-8?q?=20positive=20rotation.x=20was=20nose-down?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After the wrapper's -π/2 yaw, applying positive rotation.x to the planeHolder rotates the plane around world X with the nose dropping, not lifting (visible in the user-supplied screenshot). Flipping to -0.18 (≈10°) puts the nose where the trajectory says it should go. Co-Authored-By: Claude Opus 4.6 --- js/intro-scene.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/intro-scene.js b/js/intro-scene.js index f860fe8..5e5a1d2 100644 --- a/js/intro-scene.js +++ b/js/intro-scene.js @@ -136,9 +136,9 @@ function tick() { planeHolder.position.set(px, py + bob, 0); - /* Banking — léger roulis + nez juste un peu relevé (cabré réaliste) */ + /* Banking — léger roulis + nez relevé (cabré réaliste) */ const targetRoll = 0.18 + (p - 0.5) * 0.25; // .z = roulis - const targetPitch = 0.06 + p * 0.02; // .x = ~3.5° à 4.5° de cabré + const targetPitch = -0.18 - p * 0.04; // .x = nez en l'air ~10° 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;