> For the complete documentation index, see [llms.txt](https://abdys-organization.gitbook.io/2d-ultimate-side-scroller-character-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abdys-organization.gitbook.io/2d-ultimate-side-scroller-character-controller/content/layers.md).

# Layers

The following layers must be assigned, make sure to write layers to correct numbers :![](https://1902847056-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiQ3kJNVa442SEEQpMHRM%2Fuploads%2FTuZI3cacDIy6OM0ajOL3%2Fimage.png?alt=media\&token=f7f0ca66-46f5-41e3-9a1b-f17bb61e6271)

1. **Ground(Layer 10)**: This layer represents the static ground objects that the player can walk on or interact with.
2. **Player(Layer 11)**: This layer represents the player character and is used for interactions with other layers.
3. **Moving Platform(Layer 12)**: This layer represents platforms that move and can be interacted with by the player.
4. **Wall(Layer 13)**: This layer represents wall objects that the player can interact with, such as sliding or wall jumping.

### Layer Masks

Three layer masks are used for different calculations in the asset:

1. **Ground Layer Mask**: This layer mask is used for calculations related to the ground.\
   Recommended layers: Ground, Moving Platform, Wall.
2. **Head Bump Layer Mask**: This layer mask is used for calculations related to head bump detection.\
   Recommended layers:  Default, Ground, Wall.
3. **Wall Layer Mask**: This layer mask is used for calculations related to wall interactions, such as wall sliding or wall jumping.\
   Recommended layers: Wall.

   <figure><img src="https://1902847056-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiQ3kJNVa442SEEQpMHRM%2Fuploads%2Ff8R94SBtrHQupGy2VM3Z%2FEkran%20g%C3%B6r%C3%BCnt%C3%BCs%C3%BC%202023-05-09%20142557.png?alt=media&amp;token=80efaedb-da29-4c85-8ea9-4ee714550859" alt=""><figcaption></figcaption></figure>

By utilizing these layers and layer masks, the asset can efficiently handle physics calculations and create a more realistic and immersive experience in your 2D platformer-sidescroller game.
