diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-11 23:00:26 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-11 23:00:26 +1000 |
commit | b03bde3d412148cd573f5f14012cdd270f309947 (patch) | |
tree | 848af582079a60787cc5a5f8138e7ca6d508f2ee /src/collision.h | |
parent | 48a703e52490cb52fd32e54e3e37f7e70462a267 (diff) |
starting work on immediate mode drawing
Diffstat (limited to 'src/collision.h')
-rw-r--r-- | src/collision.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/collision.h b/src/collision.h new file mode 100644 index 0000000..4ac9ec3 --- /dev/null +++ b/src/collision.h @@ -0,0 +1,20 @@ +#pragma once +#include "geometry.h" + +enum ColliderType { + CuboidCollider, + SphereCollider, +}; + +/** @brief generic collider structure */ +typedef struct Collider { + u64 id; // ? Replace with handle? + enum ColliderType shape; + union collider_data { + Cuboid cuboid; + Sphere sphere; + } geometry; + Transform transform; + u8 layer; + bool on_ground; +} Collider; |