In my game, I want the player to only collide with one tilemap layer at a time and switch which layer during gameplay. Currently, the rays just collide with every layer at once. You could have duplicates of every tile in the tilesource, each set to a different group, but that seems really wasteful.
You need to have multiple tilemaps and disable the collision component for the ones that shouldn’t react to ray casts.
2 Likes