Drop parcel spawn point lower under the fuselage

Parcels were appearing right at the plane's center line, looking like
they came out of a window. Move the spawn offset from y-0.4 to y-1.1
so they emerge from below the belly of the airliner, where a real
cargo bay would be.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MVA Global Fret 2026-05-05 13:57:28 +02:00
parent cf7f84f354
commit 4b622a7d85

View File

@ -143,7 +143,9 @@ function spawnParcel(x, y) {
} }
}); });
g.position.set(x + (Math.random() - 0.5) * 0.4, y - 0.4, 0.2); /* Spawn point sous le ventre de l'avion pas à hauteur du fuselage
(le colis sort de la soute basse, pas du milieu de l'appareil). */
g.position.set(x + (Math.random() - 0.5) * 0.4, y - 1.1, 0.2);
g.scale.setScalar(PARCEL_INITIAL_SCALE); g.scale.setScalar(PARCEL_INITIAL_SCALE);
/* Petit angle initial différent pour chaque colis pour la variété */ /* Petit angle initial différent pour chaque colis pour la variété */
g.rotation.y = Math.random() * Math.PI * 2; g.rotation.y = Math.random() * Math.PI * 2;