blob: 88676b11401b898795d1739a49affaca17b3bf0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#include <stdint.h>
enum {THM, AABB};
struct pos {
int x;
int y;
int z;
double fx;
double fy;
double fz;
};
struct colis {
int w;
int h;
double xvel;
double yvel;
struct pos pos;
int a1;
int a2;
int b1;
int b2;
double c1;
double c2;
double d1;
double d2;
uint8_t *heightmap;
unsigned int clx : 1;
unsigned int cly : 1;
unsigned int gnded : 1;
unsigned int flp : 1;
};
extern void thm(int hmpeak, struct colis *cursor, struct colis *floor);
extern void fthm(int hmpeak, struct colis *cursor, struct colis *floor);
extern void aabb(struct colis *cursor, struct colis *floor);
extern void faabb(struct colis *cursor, struct colis *floor);
|