Skip to content

Commit 4c9bd2e

Browse files
committed
fix: move back the people on the podium
1 parent 9351b22 commit 4c9bd2e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

website/js/AthleteRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class AthleteRenderer {
3636
const base = this.cache[cacheKey].clone(true);
3737

3838
const group = new THREE.Group();
39-
group.position.set(pos.x, pos.podiumHeight, 0);
39+
group.position.set(pos.x, pos.podiumHeight, pos.z ?? 0);
4040

4141
const height = athlete.height || 170;
4242
const weight = athlete.weight || 65;

website/js/body-types.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ import { AthleteRenderer } from "./AthleteRenderer.js";
415415
scene.add(fillLight);
416416

417417
const positions = {
418-
Silver: { x: -9.75, podiumHeight: 2.2, podiumWidth: 10.0, podiumDepth: 3.0 },
419-
Gold: { x: 0, podiumHeight: 3.2, podiumWidth: 9.5, podiumDepth: 3.0 },
420-
Bronze: { x: 9.75, podiumHeight: 1.5, podiumWidth: 10.0, podiumDepth: 3.0 }
418+
Silver: { x: -9.75, podiumHeight: 2.2, podiumWidth: 10.0, podiumDepth: 3.0, z: -0.55 },
419+
Gold: { x: 0, podiumHeight: 3.2, podiumWidth: 9.5, podiumDepth: 3.0, z: -0.55 },
420+
Bronze: { x: 9.75, podiumHeight: 1.5, podiumWidth: 10.0, podiumDepth: 3.0, z: -0.55 }
421421
};
422422

423423
camera.updateProjectionMatrix();

0 commit comments

Comments
 (0)