How did you do it in the web example then? Or how does a person from above write, only for money?
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.