Godot Version
4.2.2
Question
I have a question regarding collision layers and Masks and am hoping someone may be able to clarify if my understanding is wrong.
I never really understood collisions in Unity or Unreal, I just sort of played around with it until it worked. It was never really explained in a simple way. Now I wanted to do something in Godot and sort of maybe got an understanding from one of the replies I got on the question, which maybe wrong!
I sort of got that the layer is the where the object lives like the player lives on “collision layer 2”, never changes. That the hero’s Jam, other things can also live on that layer, but, best just to have one object living there especially seeing as that is pretty important.
The “collision mask” is the layer that the object can interact with. So, like if the tileset is layer 1, we would set the mask to “1” so the “hero” can interact with that layer. So, if an enemy lived on Layer 3, and also needed to interact with the tiles then the mask would be also on 1, and if he can be killed by the ‘hero’ there would also be a mask on 2. Like there could be more masks per character but only one place where they live.
Now is this basically right? Or is there more to it?
Regards.