working bike

This commit is contained in:
math-pixel
2026-05-17 08:15:16 +02:00
parent cff7744ad9
commit fbedb90bca
5 changed files with 77 additions and 15 deletions
+4 -1
View File
@@ -108,6 +108,7 @@ export function PlayerController({
const initializedRef = useRef(false);
const canMove = useGameStore((state) => state.missionFlow.canMove);
const currentSpeed = useGameStore((state) => state.player.currentSpeed);
const movementMode = useGameStore((state) => state.player.movementMode);
const capsule = useRef(createSpawnCapsule(spawnPosition));
@@ -282,7 +283,9 @@ export function PlayerController({
}
}
camera.position.copy(capsule.current.end);
if (movementMode !== "ebike") {
camera.position.copy(capsule.current.end);
}
});
return null;