From 23ef8bc20310bdfad52b07a3f1e4e61c98896841 Mon Sep 17 00:00:00 2001 From: Schark Date: Wed, 23 Sep 2026 23:40:11 -0400 Subject: Working demogit add README.md src/ --- platformer/src/physics.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'platformer/src/physics.h') diff --git a/platformer/src/physics.h b/platformer/src/physics.h index dfbfebb..580d09b 100644 --- a/platformer/src/physics.h +++ b/platformer/src/physics.h @@ -33,4 +33,16 @@ #ifndef PHYSICS_H #define PHYSICS_H +#include + +#include "math3d.h" + +typedef struct Body { + Vec3 pos; /* position of the body's FEET (bottom center), meters */ + Vec3 vel; /* velocity, meters/second */ + bool on_ground; /* true if the body ended the last step standing on ground */ +} Body; + +void physics_step(Body *b, float dt); + #endif /* PHYSICS_H */ -- cgit v1.2.3-18-g5258