aboutsummaryrefslogtreecommitdiff
path: root/src/helper.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-01 12:33:55 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-01 12:33:55 +0100
commita0f26d0407a2e514e9dcfd2baeef5ccd98f7b3dd (patch)
treefc919296727d6a6dc4eda868d143cb86017ed2bc /src/helper.c
parent57867bbbdc24b734d85f8d3569c7ad27dcd9504d (diff)
downloadcub3d-a0f26d0407a2e514e9dcfd2baeef5ccd98f7b3dd.tar.gz
cub3d-a0f26d0407a2e514e9dcfd2baeef5ccd98f7b3dd.tar.bz2
cub3d-a0f26d0407a2e514e9dcfd2baeef5ccd98f7b3dd.zip
texture selector, collision detection
Diffstat (limited to 'src/helper.c')
-rw-r--r--src/helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/helper.c b/src/helper.c
index 9940848..6fa7ffe 100644
--- a/src/helper.c
+++ b/src/helper.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/11 07:32:20 by cacharle #+# #+# */
-/* Updated: 2020/01/16 08:57:01 by cacharle ### ########.fr */
+/* Updated: 2020/02/01 11:32:15 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -38,7 +38,8 @@ void helper_rotate_player(t_state *state, double rotation)
/*
** Initial player direction vector
-** Since the map [0 0] is in the top left corner the north/south direction are slipped.
+** Since the map [0 0] is in the top left corner
+** the north/south direction are slipped.
** The camera plane has to stay perpendicular to the direction and
** create a camera with a 66 degree angle (which is a recommended angle for fps)
*/