Flip plane heading 180° — nose now leads the right→left motion
The Poly by Google airplane's default orientation in the GLB is the opposite of what I assumed: at wrapper.rotation.y = +π/2 the nose ended up pointing into the direction the plane was moving away from (it looked like it was flying tail-first). Switch to -π/2 so the nose actually leads the trajectory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
48dbd14541
commit
a23ef5edc3
@ -58,7 +58,7 @@ loader.load(
|
|||||||
wrapper.scale.setScalar(targetSize / Math.max(size.x, size.y, size.z));
|
wrapper.scale.setScalar(targetSize / Math.max(size.x, size.y, size.z));
|
||||||
/* Pivote le modèle pour que le nez pointe vers la gauche (-X) :
|
/* Pivote le modèle pour que le nez pointe vers la gauche (-X) :
|
||||||
l'avion entre par la droite et sort par la gauche. */
|
l'avion entre par la droite et sort par la gauche. */
|
||||||
wrapper.rotation.y = Math.PI / 2;
|
wrapper.rotation.y = -Math.PI / 2;
|
||||||
planeHolder.add(wrapper);
|
planeHolder.add(wrapper);
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user