diff options
author | nathan <nathansmith@disroot.org> | 2025-09-19 09:51:12 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-09-19 09:51:12 +0000 |
commit | 8efa99463c2efa772fe7af2e65e6931d7c83e9d6 (patch) | |
tree | 9e9b628bcb2fba69070982d2082f76a35d2f43d6 /src/world.c | |
parent | 459aca4f1fe506340bc6238f8da39f494bb45352 (diff) | |
download | FindThings-8efa99463c2efa772fe7af2e65e6931d7c83e9d6.tar.gz FindThings-8efa99463c2efa772fe7af2e65e6931d7c83e9d6.tar.bz2 FindThings-8efa99463c2efa772fe7af2e65e6931d7c83e9d6.zip |
Samantha
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c index bf486e3..026a5ed 100644 --- a/src/world.c +++ b/src/world.c @@ -674,9 +674,14 @@ World createWorld(Seed seed, const Assets* assets) // Items. start = end; - end = WORLD_ENTITY_MAX; + end = WORLD_ENTITY_MAX - 1; seed = generateWorldItems(&world, seed, start, end); + // Test Samantha. + Entity samantha = createEntity(SAMANTHA, Vector3Scale(world.size, 0.5)); + placeEntityOnGround(&samantha, &world); + world.entities[WORLD_ENTITY_MAX - 1] = samantha; + // Generate BVH. double currentTime = GetTime(); buildWorldBVH(&world); |