Hello,
I’ve run into a problem when combining arcade physics and tilemaps with colliders.
The issue is that my player’s body.touching.down
is false, even when it is clearly touching the tilemap’s collider and has stopped being affected by gravity.
The collision callback even runs, but body.touching.none
remains true.
I was able to set up a reproducible example of the issue:
Go to the Simple Map Example in the sandbox, and then add the following code into the update
:
console.log(player.body.touching.none);
When looking at the console, you will notice that true
remains printed even when the player is clearly touching the tile map.
Am I doing something wrong? Is there a workaround for this? I am currently in a game jam so any more info would be greatly appreciated