aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.c
diff options
context:
space:
mode:
authornathan <nathan@disroot.org>2025-07-09 04:51:18 +0000
committernathan <nathan@disroot.org>2025-07-09 04:51:18 +0000
commita859191288d7de81b52434cfa3cebcfd2aadab2b (patch)
tree4a6b0f632846d3b9a60f4f51c59339072f2df2eb /src/entity.c
parent4819292821b51083538d4d4880e90d0d3314f839 (diff)
downloadFindThings-a859191288d7de81b52434cfa3cebcfd2aadab2b.tar.gz
FindThings-a859191288d7de81b52434cfa3cebcfd2aadab2b.tar.bz2
FindThings-a859191288d7de81b52434cfa3cebcfd2aadab2b.zip
Slight changes
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
index ac3606b..0fe6366 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -8,6 +8,10 @@ Entity createEntity(EntityId id, Vector3 position)
entity.id = id;
entity.position = position;
+ // Test boundingbox.
+ entity.box.min = Vector3SubtractValue(position, 1.0);
+ entity.box.max = Vector3AddValue(position, 1.0);
+
return entity;
}