World Partition Regional Locations

Morning All, got a question.

The mock-up below represent a world partition map. The colored areas represent different regions inside the map (think of states in a country). What I would like to do is know when a character is in one region or another. Problem is that the regions span many cells in the partition. This I think becomes more complicated based on the irregular shapes of the regions. I know in general geometry you would raycast to see if a particular point is inside of a polygon, but again due to size and partition loading I’m not sure that would work.

One thought I had was making the edges less irregular by having them follow the cell structure of the map and then just checking to see what cell the character is in (assuming that can be done).

Any suggestions, opinions or thoughts would be appreciated.

you could make a 2D SDF representation of each of your partitions and just check the player’s location again them. Or replicate the players movement on a much smaller scale that you could use to do normal raycast checks.