From d248cde2309e9aa3f14a10ce2db0019afdf9f0f1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 8 Mar 2020 00:56:36 +0100 Subject: Collision fixed, still galering --- inc/cub3d_structs.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'inc/cub3d_structs.h') 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; -- cgit v1.2.3