From 779ed23839fcabf53b72267f29e2f86a5691270e Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 7 Jul 2025 12:13:15 -0600 Subject: Working on BVH --- src/world.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/world.h') diff --git a/src/world.h b/src/world.h index e06d628..d5c1a46 100644 --- a/src/world.h +++ b/src/world.h @@ -11,6 +11,10 @@ #define BVH_MAX 4 #define WORLD_ENTITY_MAX 1000 +#define WORLD_SIZE (Vector3){1000.0, 100.0, 1000.0} +#define WORLD_IMAGE_WIDTH 100 +#define WORLD_IMAGE_HEIGHT 100 +#define WORLD_IMAGE_SCALE 5.0 // UID for anything in the world.x typedef int16_t WorldUID; @@ -28,9 +32,10 @@ typedef struct { Model heightmap; Entity entities[WORLD_ENTITY_MAX]; BVHNode bvh; + BVHNode bvhTest[250]; } World; -World createWorld(const Assets* assets); +World createWorld(int seed); void updateWorld(World* world, Game* game); void freeWorld(World world); // Dam, I wanta live in a free world ): -- cgit v1.2.3