RectsOverlap on each tile in a tile layer

4.5.1

I want to use custom physics in my platformer. Using the Built-In TileLayer, once tiles are placed, how would I perform a RectsOverlap on each tile?

Tiles are 64x64 and I’d like the rect to be 64px Width and 16px Height from the top left of each tile. My player object is 64px by 64px and will need its own rect. I just need to know how to detect the collision on each tile between the player object and the tiles in the tilelayer?

Thank you!

I guess you would have to get all tiles close to the player, which should be fairly easy and then you can use the Built-In Rect2 or Rect2i class to calculate collisions