So I want to use a line trace to help handle my paper characters’ movement on a paper tile map. I want to use the line trace to hit the tile map and get some information, index, location, and if it has collision.
The first issue I run into is that the line trace will only hit the tile map if the tile has collision.
The second issue I have is that when the line trace hits the paper tile map, it only sees that and doesn’t the individual tiles.
The resolution I am trying to find/figure out is, is there a way to take my character and just get the information for the tile that is underneath it via line trace?
I know I could parse my character’s location and compare it to every tile center or corner location to figure out which tile I’m in, but I feel like that will be slow, especially with bigger tile maps. Would that be the best way?