aboutsummaryrefslogtreecommitdiffstats
path: root/src/physics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/physics.h')
-rw-r--r--src/physics.h12
1 files changed, 9 insertions, 3 deletions
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 <time.h>
#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