voir le parsing

This commit is contained in:
H3XploR
2025-02-17 23:12:16 +01:00
parent e36cfb5fde
commit 490c585c48
7 changed files with 67 additions and 72 deletions
+3 -3
View File
@@ -6,7 +6,7 @@
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/17 19:22:27 by yantoine #+# #+# */
/* Updated: 2025/02/17 19:23:41 by yantoine ### ########.fr */
/* Updated: 2025/02/17 22:55:44 by yantoine ### ########.fr */
/* */
/* ************************************************************************** */
@@ -71,8 +71,8 @@ int mouse_move(int x, int y, t_app *app)
}
dx = x - last_x;
dy = y - last_y;
app->yaw += dx * app->mouse_sens;
app->pitch -= dy * app->mouse_sens;
app->scene.camera.yaw += dx * app->mouse_sens;
app->scene.camera.pitch -= dy * app->mouse_sens;
last_x = x;
last_y = y;
return (0);