diff options
Diffstat (limited to 'include/physics.h')
| -rw-r--r-- | include/physics.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/physics.h b/include/physics.h deleted file mode 100644 index 8ffa438..0000000 --- a/include/physics.h +++ /dev/null @@ -1,31 +0,0 @@ -#define PHX_TICK_TIME (1.0 / 480.0) - -typedef int BodyID; - -typedef enum { - BTYPE_AABB, - BTYPE_TILEMAP, -} BodyType; - -typedef struct Body Body; -typedef struct CollisionEvent { - BodyID body1; - BodyID body2; -} CollisionEvent; - -BodyID phxnew(BodyType type); -void phxdel(BodyID); - -void phxsetmap(int w, int h, int *tiles); - -void phxsetpos(BodyID, float x, float y); -void phxsetsize(BodyID, float w, float h); -void phxapplyaccel(BodyID, float f[2]); - -void phxgetpos(BodyID, float pos[2]); -void phxgetsize(BodyID, float size[2]); - -int phxnextcollevent(CollisionEvent *ev); -void phxtick(float delta); - -void phxfixtick(void); |
