aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-08 00:56:36 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-08 00:56:36 +0100
commitd248cde2309e9aa3f14a10ce2db0019afdf9f0f1 (patch)
tree3b754dacd2e858c547f9cb95a303a797f39382c8 /inc/cub3d_structs.h
parentI gotta figure out (diff)
download42-cub3d-d248cde2309e9aa3f14a10ce2db0019afdf9f0f1.tar.gz
42-cub3d-d248cde2309e9aa3f14a10ce2db0019afdf9f0f1.tar.bz2
42-cub3d-d248cde2309e9aa3f14a10ce2db0019afdf9f0f1.tar.xz
42-cub3d-d248cde2309e9aa3f14a10ce2db0019afdf9f0f1.tar.zst
42-cub3d-d248cde2309e9aa3f14a10ce2db0019afdf9f0f1.zip
Collision fixed, still galering
Diffstat (limited to '')
-rw-r--r--inc/cub3d_structs.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index ecbbaf3..d59c25e 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -122,22 +122,23 @@ typedef struct s_ray
{
uint16_t line_h;
float wall_dist;
+ float row_dist;
float x_ray_pos;
float y_ray_pos;
float x_ray_dir;
float y_ray_dir;
- float x_ray_dir_bis;
- float y_ray_dir_bis;
+ float x_ray_dir_f;
+ float y_ray_dir_f;
+ float x_ray_dir_f_bis;
+ float y_ray_dir_f_bis;
float x_side_dist;
float y_side_dist;
float x_delta_dist;
float y_delta_dist;
float floor_x;
float floor_y;
- int16_t ceil_x;
- int16_t ceil_y;
- float row_dist;
- float ceil_dist;
+ int16_t cell_x;
+ int16_t cell_y;
int16_t wall_t;
int16_t wall_b;
uint8_t side;