]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/physics.h
Include pthread_time on windows for clock_gettime
[dragonblocks_alpha.git] / src / physics.h
1 #ifndef _PHYSICS_H_
2 #define _PHYSICS_H_
3
4 #include <stdbool.h>
5 #include "terrain.h"
6 #include "types.h"
7
8 bool physics_ground(Terrain *terrain, bool collide, aabb3f32 box, v3f64 *pos, v3f64 *vel);
9 bool physics_step  (Terrain *terrain, bool collide, aabb3f32 box, v3f64 *pos, v3f64 *vel, v3f64 *acc, f64 t);
10
11 #endif // _PHYSICS_H_