This commit is contained in:
2026-10-02 11:07:09 -03:00
parent d5015edfa1
commit 9ca717d2d0
18 changed files with 449 additions and 38 deletions
+3
View File
@@ -36,6 +36,9 @@ export const CHUNK_AREA = CHUNK_SIZE * CHUNK_SIZE;
export const PLAYER_WIDTH = 0.6;
export const PLAYER_HEIGHT = 1.79;
export const PLAYER_EYE_HEIGHT = 1.69;
// while swimming they lie flat in a shorter box, like voxelibre's, so they fit through 1 block gaps
export const PLAYER_SWIM_HEIGHT = 0.8;
export const PLAYER_SWIM_EYE_HEIGHT = 0.6;
// where a block placed against each face of another block goes
export const FACE_OFFSETS: Record<Faces, { x: number; y: number; z: number }> = {