useful comment
This commit is contained in:
parent
4a149be546
commit
0fff61f93c
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue