Flip pitch sign — turns out positive rotation.x was nose-down
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 <noreply@anthropic.com>
This commit is contained in:
parent
1aa18d92b8
commit
710551082c
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user