If there are four connecting squares and the player is on top of them all but mostly over one how can I tell which square it is that the player is mostly on.
I was thinking of setting multiple rays under the player and setting which square had hit the most amount of rays and counting that but I was wondering if there was a more efficient way.
Thanks!