summaryrefslogtreecommitdiff
path: root/src/systems
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-04-25 10:58:39 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-04-25 10:58:39 +1000
commitf8375e4587612d6a582eb053be5a67694a59993d (patch)
tree4e7ff27cad65d8a2d56d078f44c2ff6af2a37116 /src/systems
parent44ca626fee33c445b9d61caa307a15ebc34f8330 (diff)
phys collider
Diffstat (limited to 'src/systems')
-rw-r--r--src/systems/physics.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/systems/physics.h b/src/systems/physics.h
index 17fc746..5c96c6e 100644
--- a/src/systems/physics.h
+++ b/src/systems/physics.h
@@ -8,6 +8,20 @@ typedef struct physics_settings {
f32 gravity_strength;
} physics_settings;
+enum collider_type {
+ cuboid_collider,
+ sphere_collider,
+};
+
+/** @brief generic collider structure */
+typedef struct physics_collider {
+ u64 id; // ? Replace with handle?
+ enum collider_type shape;
+ transform transform;
+ u8 layer;
+ bool on_ground;
+} physics_collider;
+
typedef struct physics_world {
physics_settings settings;
} physics_world;