From 571bf80c6efd0dc9e10747521998f4d6184e5788 Mon Sep 17 00:00:00 2001 From: mcolonna Date: Wed, 16 Oct 2024 18:02:01 +0200 Subject: [PATCH] fix: map directions --- map.h | 6 +++--- utils.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/map.h b/map.h index cc974fd..86c6a39 100644 --- a/map.h +++ b/map.h @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* map.h :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: mcolonna +#+ +:+ +#+ */ +/* By: mcolonna +#+ +:+ +#+ */ +/* By: mcolonna x = -cos(angle) * norm; - vec->y = sin(angle) * norm; + vec->x = sin(angle) * norm; + vec->y = -cos(angle) * norm; } void write_err(const char *str, ...)