Address of map number 0 |
Map number 1 address |
Map number 2 address |
Map number 3 address |
: |
: |
: |
Address of map number n-1 |
Null map object data |
Object data of map number 0 |
Map number 1 object data |
Map number 2 object data |
Map number 3 object data |
: |
: |
: |
Object data of map n-1 |
Used to calculate which polygon you are standing on.
Used to calculate your own slope and the slope's gravity.
Acquisition of attribute flags for each polygon such as "road" or "grassland"
Obtain group number for each polygon
typedef struct { VECTOR norm ; /* Normal vector */ Uint16 att; /* Attribute */ Uint16 gru; /* group */ FIXED cen_x; /* center */ FIXED cen_y; /* center */ FIXED cen_z; /* center */ } COLLISON; typedef struct { COLLISON *cotbl; /* Polygon definition table */ Uint32 nbCo; /* Number of polygons */ }CDATA;