refacto : cleaning the codebasebase again

This commit is contained in:
Tom Boullay
2026-04-19 16:50:11 +02:00
parent 1c48441535
commit 0f96b5597b
26 changed files with 127 additions and 5726 deletions
+3 -7
View File
@@ -1,22 +1,18 @@
import { useEffect } from "react";
import { useThree } from "@react-three/fiber";
import type { Octree } from "three/addons/math/Octree.js";
import {
PLAYER_SPAWN_X,
PLAYER_SPAWN_Y_DEFAULT,
PLAYER_SPAWN_Z,
} from "@/data/playerConfig";
import { PLAYER_SPAWN_X, PLAYER_SPAWN_Z } from "@/data/playerConfig";
import { PlayerCamera } from "@/world/player/PlayerCamera";
import { PlayerController } from "@/world/player/PlayerController";
interface PlayerComponentProps {
octree?: Octree | null;
spawnY?: number;
spawnY: number;
}
export function PlayerComponent({
octree = null,
spawnY = PLAYER_SPAWN_Y_DEFAULT,
spawnY,
}: PlayerComponentProps): React.JSX.Element {
const camera = useThree((state) => state.camera);