Could someone help me understand how hitboxes work? When I place tiles it's based on a grid, but the actual hitboxes can be scaled as a circle? I'm just a little confused how that works. The beginning of this video demonstrates the player moving in an 8 directional movement. So, what would happen when you encounter something diagonally?
Also drew this to illustrate what I am thinking about. At what point does the engine recognize that the circle has entered the square?
I did a tutorial and all of these balls were interacting with each other as circles and the physics were working correctly. However I am still confused as to how a circle travels on top of squares.
So, imagine here that the green tiles are the map, and the blue circle is the player. How does the engine work in terms of determined at which coordination the player is, or if he is "touching" a square on the grid?
Would I need to study how coordinates and collision work in programming? If so, I am not sure where to look to study about this. Thanks in advance.