blob: a191860a930eba12cd8881bce5c7e3ccb7c11a5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// physics.h
#ifndef PHYSICS_H
#define PHYSICS_H
#include <raylib.h>
#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);
void update_physics(object_t* world, uint32_t objs_count, float gravity, float dt);
void clear_all_physics(object_t* world, uint32_t* count);
#endif // PHYSICS_H
|