move forward cam

This commit is contained in:
math-pixel
2026-05-19 15:36:50 +02:00
parent 9ab4b4a002
commit 96d7ec7fc0
2 changed files with 11 additions and 20 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ export function Ebike({ position }: EbikeProps): React.JSX.Element {
const model = useClonedObject(scene);
const movementMode = useGameStore((state) => state.player.movementMode);
useFrame((state) => {
useFrame(() => {
if (groupRef.current) {
if (movementMode === "ebike") {
// Follow player physical position (capsule end)