Checkpoint objets (03/11), revue standards : la caméra ne suit pas un véhicule sous mouvement réduit ; commentaire de tête sans prénom tiers

This commit is contained in:
Jules Nény
2026-11-03 14:57:24 +01:00
parent 066809e1b9
commit 8ab0b006f8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -527,7 +527,7 @@ export function creerScene(canvas, { D, ESSENCES, BULLES, IMG, reduit, petit, on
let az = c.az ?? 0; while (az - vue.az > Math.PI) az -= 2 * Math.PI; while (az - vue.az < -Math.PI) az += 2 * Math.PI;
const ra = Math.cos(az), rza = -Math.sin(az), fa = -Math.sin(az), fza = -Math.cos(az);
const apres = { x: c.x - ra * offX - fa * offY, z: c.z - rza * offX - fza * offY, az, el: vue.el, w };
suivi = c.suit ? { nom, ox: apres.x - c.x, oz: apres.z - c.z } : null;
suivi = c.suit && !reduit ? { nom, ox: apres.x - c.x, oz: apres.z - c.z } : null; // sous mouvement réduit, la caméra ne suit pas le véhicule (checkpoint du 03/11)
if (reduit || duree === 0) { Object.assign(vue, apres); besoin = true; return; }
vol = { avant: { ...vue }, apres, t0: performance.now(), d: duree };
}