This is using a list of ground locations, no raycast is used.
There is a 4 way check and a 8 way check.
4 way checks allows up to 16 values, while the 8 way check can get up to 256 values.
Open the test levels and see what you can do with these tilemaps!