diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-27 17:07:03 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-27 17:07:03 +1000 |
commit | 93c8d40b39fe55a626e66d412450fb4cca1f993b (patch) | |
tree | c064a1729404100ea6bfa62c0960442a17791fdb /src/systems/physics.h | |
parent | fc35df8e999521b8be7c44800f4ff4665df3254a (diff) |
scene thoughts
Diffstat (limited to 'src/systems/physics.h')
-rw-r--r-- | src/systems/physics.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/systems/physics.h b/src/systems/physics.h index 61d2008..7239ab5 100644 --- a/src/systems/physics.h +++ b/src/systems/physics.h @@ -1,5 +1,6 @@ #pragma once +#include "geometry.h" #include "maths_types.h" // 'system' means that it gets called per frame @@ -17,11 +18,18 @@ enum collider_type { typedef struct physics_collider { u64 id; // ? Replace with handle? enum collider_type shape; + union collider_data { + cuboid cuboid; + sphere sphere; + } geometry; transform transform; u8 layer; bool on_ground; } physics_collider; +// What else do I need? +// intersection methods + typedef struct physics_world { physics_settings settings; } physics_world; |