diff options
author | nathan <nathansmith@disroot.org> | 2025-07-07 18:13:15 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-07-07 18:13:15 +0000 |
commit | 779ed23839fcabf53b72267f29e2f86a5691270e (patch) | |
tree | 5f3db2ac7a9e35e241d5406ea1e0090eb3672b28 /src/world.h | |
parent | 811d5bf064ce992bc742f55c112a777801126861 (diff) | |
download | FindThings-779ed23839fcabf53b72267f29e2f86a5691270e.tar.gz FindThings-779ed23839fcabf53b72267f29e2f86a5691270e.tar.bz2 FindThings-779ed23839fcabf53b72267f29e2f86a5691270e.zip |
Working on BVH
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 ): |