diff options
| author | kotorifan <kotorifan05@gmail.com> | 2026-04-27 17:02:49 +0200 |
|---|---|---|
| committer | kotorifan <kotorifan05@gmail.com> | 2026-04-27 17:02:49 +0200 |
| commit | 1ff5ed07b840f4f5de81592f7a9b04debf38c447 (patch) | |
| tree | a25b2cccd860522d944f1e19fd186462ff842a9c /src/physics.h | |
| parent | c8ec0d2d0c57c42499f9ea95ef0ddd6ef3764f26 (diff) | |
| download | trashbinphysics-1ff5ed07b840f4f5de81592f7a9b04debf38c447.tar.gz | |
SAT works now
Diffstat (limited to 'src/physics.h')
| -rw-r--r-- | src/physics.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/physics.h b/src/physics.h index e9c0c0e..a191860 100644 --- a/src/physics.h +++ b/src/physics.h @@ -8,11 +8,7 @@ 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); void update_physics(object_t* world, uint32_t objs_count, float gravity, float dt); -void apply_force(object_t* obj, Vector2 force); -void add_object(object_t* world, uint32_t* count, shape_t type, Vector2 pos); void clear_all_physics(object_t* world, uint32_t* count); -void push_pos(object_t* world, uint32_t count, Vector2 pos, float radius, float strength); - #endif // PHYSICS_H |
