11 #ifndef _HAVE_COLLISIONINFO_TYPE
12 #define _HAVE_COLLISIONINFO_TYPE
13 typedef struct collisioninfo_s
{
14 struct collisioninfo_s
*prev
;
15 struct collisioninfo_s
*next
;
24 #ifndef _HAVE_COLLISIONRESULT_TYPE
25 #define _HAVE_COLLISIONRESULT_TYPE
26 typedef struct collisionresult_s
{
27 uint8_t touching_ground
;
29 uint8_t touching_lethal
;
32 uint8_t standing_on_unloaded
;
33 collisioninfo_t
*collisions
;
37 #ifndef _HAVE_COLLISIONBLOCK_TYPE
38 #define _HAVE_COLLISIONBLOCK_TYPE
39 typedef struct collisionblock_s
{
47 collisionresult_t
*collision_move(float pos_max_d
, aabox_t
*box
, float stepheight
, float dtime
, v3_t
*pos
, v3_t
*speed
, v3_t accel
);
48 void collision_free(collisionresult_t
*r
);