From 0fff61f93c914bd2a95a74dd0a2180b32c0feaa4 Mon Sep 17 00:00:00 2001 From: yuki Date: Tue, 11 Nov 2025 19:30:53 -0300 Subject: [PATCH] useful comment --- obj/game/Player.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/obj/game/Player.lua b/obj/game/Player.lua index 0b33434..04be4ee 100644 --- a/obj/game/Player.lua +++ b/obj/game/Player.lua @@ -1,3 +1,9 @@ +--[[ + Generally whenever you want to get a position B that is distance units away from position A such that position B is positioned at a specific angle in relation to position A, the pattern is something like: + + bx = ax + distance*math.cos(angle) and by = ay + distance*math.sin(angle). +]] + ---@class Player:GameObject ---@field area Area ---@field x number