diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-14 18:57:10 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-14 18:57:10 +0100 |
commit | f5e4e2f56a9d1b6019cc937e1291930455502c99 (patch) | |
tree | f89f14a43145af99e0a639a5209c067149436189 /src/ft_extra_keys.c | |
parent | Norme is bav (diff) | |
download | 42-cub3d-f5e4e2f56a9d1b6019cc937e1291930455502c99.tar.gz 42-cub3d-f5e4e2f56a9d1b6019cc937e1291930455502c99.tar.bz2 42-cub3d-f5e4e2f56a9d1b6019cc937e1291930455502c99.tar.xz 42-cub3d-f5e4e2f56a9d1b6019cc937e1291930455502c99.tar.zst 42-cub3d-f5e4e2f56a9d1b6019cc937e1291930455502c99.zip |
Bug fix, changed rot speed
Diffstat (limited to '')
-rw-r--r-- | src/ft_extra_keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c index 3ca8fd8..2e9ccf7 100644 --- a/src/ft_extra_keys.c +++ b/src/ft_extra_keys.c @@ -23,7 +23,7 @@ int float rot_speed; pl = clist->plist; - rot_speed = 0.3; + rot_speed = 0.1; sav_dir_x = pl->dir_x; pl->dir_x = pl->dir_x * cos(rot_speed) - pl->dir_y * sin(rot_speed); pl->dir_y = sav_dir_x * sin(rot_speed) + pl->dir_y * cos(rot_speed); @@ -42,7 +42,7 @@ int float rot_speed; pl = clist->plist; - rot_speed = 0.3; + rot_speed = 0.1; sav_dir_x = pl->dir_x; pl->dir_x = pl->dir_x * cos(-rot_speed) - pl->dir_y * sin(-rot_speed); pl->dir_y = sav_dir_x * sin(-rot_speed) + pl->dir_y * cos(-rot_speed); |