generated at
Godot: Layer and Mask
Godot Engineの Layer と Mask の設定について
環境: Godot 4.0 stable
CollisionShape2D などのノードに存在するプロパティ
基本的には、以下の考え方でok
Layer: 自分が所属しているレイヤー
Mask: 自分がどのレイヤーに衝突するか


参考記事:
>レイヤー:自分が所属しているコリジョン
> マスク:自分が当たり判定を行うコリジョン
>Here's a really good way to think of it:
> The Layer tells us "I exist on" the following layer(s)."
> The Mask tells us "I will collide with items that exist on the following layers."