Again, it is difficult to explain everything about collisions here. The game you can play on this page is the "Dungeon Example" included in the examples. Or I suggest you wait for someone to make a tutorial video.
It’s just that I have a difficult project there, and there must be. If anything, if there is an error in the text, then know that I speak English poorly, I use a translator in the keyboard.