Phaser 3 how to setup collision to multiple layers
strangely enough, I am not able to setup collision on multiple layers in Phaser 3. I’ve setup collision for specific indexes in walls layer and everythng works but I am not able to setup collision to waterLayer as a whole. Waterlayer renders correctly and I am able to log the waterLayer properties. For some reason still, player always is able to run trough the waterlayer. Here is relevant code:
What do the different physics modes in Phaser JS do?
I just started making games with Phaser JS and want to know what other options are there for the default in the physics part of the config and what they do.