diff options
Diffstat (limited to 'src/physics')
-rw-r--r-- | src/physics/broadphase.h | 10 | ||||
-rw-r--r-- | src/physics/collision.h | 30 | ||||
-rw-r--r-- | src/physics/narrowphase.h | 10 | ||||
-rw-r--r-- | src/physics/physics.c | 1 | ||||
-rw-r--r-- | src/physics/physics.h | 23 |
5 files changed, 0 insertions, 74 deletions
diff --git a/src/physics/broadphase.h b/src/physics/broadphase.h deleted file mode 100644 index 8b49716..0000000 --- a/src/physics/broadphase.h +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @file broadphase.h - * @author your name (you@domain.com) - * @brief - * @version 0.1 - * @date 2024-05-12 - * - * @copyright Copyright (c) 2024 - * - */
\ No newline at end of file diff --git a/src/physics/collision.h b/src/physics/collision.h deleted file mode 100644 index cca6042..0000000 --- a/src/physics/collision.h +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @file collision.h - * @author your name (you@domain.com) - * @brief - * @version 0.1 - * @date 2024-05-12 - * - * @copyright Copyright (c) 2024 - * - */ -#pragma once -#include "geometry.h" - -enum collider_type { - cuboid_collider, - sphere_collider, -}; - -/** @brief generic collider structure */ -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;
\ No newline at end of file diff --git a/src/physics/narrowphase.h b/src/physics/narrowphase.h deleted file mode 100644 index 2368c49..0000000 --- a/src/physics/narrowphase.h +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @file narrowphase.h - * @author your name (you@domain.com) - * @brief - * @version 0.1 - * @date 2024-05-12 - * - * @copyright Copyright (c) 2024 - * - */
\ No newline at end of file diff --git a/src/physics/physics.c b/src/physics/physics.c deleted file mode 100644 index 299c0c1..0000000 --- a/src/physics/physics.c +++ /dev/null @@ -1 +0,0 @@ -#include "physics.h"
\ No newline at end of file diff --git a/src/physics/physics.h b/src/physics/physics.h deleted file mode 100644 index e0e3b89..0000000 --- a/src/physics/physics.h +++ /dev/null @@ -1,23 +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);
\ No newline at end of file |