From c176eedfb6de797c09acbff1f61cf62cf1f2c694 Mon Sep 17 00:00:00 2001 From: kotorifan Date: Tue, 28 Apr 2026 00:47:22 +0200 Subject: Enough for today --- src/physics.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/physics.h') diff --git a/src/physics.h b/src/physics.h index a191860..e69a0b6 100644 --- a/src/physics.h +++ b/src/physics.h @@ -1,4 +1,7 @@ -// physics.h +/** + * @file physics.h + * @brief Header file with functions for physics.h; physics related, duh + */ #ifndef PHYSICS_H #define PHYSICS_H @@ -6,9 +9,12 @@ #include #include "common.h" - void init_physics(object_t* world, uint32_t max_objs); -bool check_collision(object_t* obj1, object_t* obj2); +bool check_collision(object_t* obj1, object_t* obj2, Vector2* out_n, float* out_depth); +void resolve_collision(object_t* obj1, object_t* obj2, Vector2 normal, float out_depth); +void update_shape(object_t* obj); void update_physics(object_t* world, uint32_t objs_count, float gravity, float dt); void clear_all_physics(object_t* world, uint32_t* count); +void generate_random_shape(object_t* obj, float radius); + #endif // PHYSICS_H -- cgit v1.3