fix(repair): keep ebike at zone Y in test scene

Adds an opt-out 'snapToTerrain' prop on Ebike so the parked position
keeps the explicit Y supplied by callers instead of resolving against
the world terrain GLTF. TestMap passes snapToTerrain={false} since it
does not render the world terrain — without this the bike was being
positioned at the invisible terrain height, far above the test floor,
and looked missing.
This commit is contained in:
Tom Boullay
2026-06-02 22:10:31 +02:00
parent 2a6a028e1d
commit 6a0215d1a6
2 changed files with 38 additions and 15 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ export function TestMap({ onOctreeReady }: TestMapProps): React.JSX.Element {
<RepairPlaygroundZoneMarker color={zone.color} />
</group>
{zone.mission === "ebike" ? (
<Ebike position={zone.position} />
<Ebike position={zone.position} snapToTerrain={false} />
) : null}
<RepairGame mission={zone.mission} position={zone.position} />
</group>