summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;