]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/common/physics.h
Rework structure
[dragonblocks_alpha.git] / src / common / physics.h
diff --git a/src/common/physics.h b/src/common/physics.h
new file mode 100644 (file)
index 0000000..66d00dd
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef _PHYSICS_H_
+#define _PHYSICS_H_
+
+#include <stdbool.h>
+#include "common/terrain.h"
+#include "types.h"
+
+bool physics_ground(Terrain *terrain, bool collide, aabb3f32 box, v3f64 *pos, v3f64 *vel);
+bool physics_step  (Terrain *terrain, bool collide, aabb3f32 box, v3f64 *pos, v3f64 *vel, v3f64 *acc, f64 t);
+
+#endif // _PHYSICS_H_