Collision with csv tile

#1

Sem%20t%C3%ADtulo

There is no collision between the csv layer and the player, the code is the same as the example, but there is no collision, what is happening?

#2

By chance, did you happen to check the indexes you are using for layer? When you call the setCollisionBetween method, you will need to pass the range of indexes that are used in your Tilemap.

Reference: https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.StaticTilemapLayer.html#setCollisionBetween__anchor