From 43bee361397315c7105b7214316325b185135331 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 26 Oct 2024 21:55:23 +1100 Subject: move archive into /src --- archive/src/physics.h | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 archive/src/physics.h (limited to 'archive/src/physics.h') diff --git a/archive/src/physics.h b/archive/src/physics.h deleted file mode 100644 index 134f08b..0000000 --- a/archive/src/physics.h +++ /dev/null @@ -1,44 +0,0 @@ -#pragma once - -#include "geometry.h" -#include "maths_types.h" - -// 'system' means that it gets called per frame - -typedef struct physics_settings { - f32 gravity_strength; -} physics_settings; - -// What else do I need? -// intersection methods - -typedef struct physics_world { - physics_settings settings; -} physics_world; - -physics_world physics_init(physics_settings settings); -void physics_shutdown(physics_world* phys_world); - -/** @brief perform one or more simulation steps */ -void physics_system_update(physics_world* phys_world, f64 deltatime); - -// enum ColliderType { -// CuboidCollider, -// SphereCollider, -// }; - -/** @brief Oriented Bounding Box */ -typedef struct OBB { - Vec3 center; - Bbox_3D bbox; - Quat rotation; -} OBB; - -PUB void Debug_DrawOBB(OBB obb); - -/** @brief generic collider structure */ -typedef struct Collider { - u64 id; // ? Replace with handle? - OBB shape; // NOTE: We're only supporting the one collider type for now - bool on_ground; -} Collider; -- cgit v1.2.3-70-g09d2