> For the complete documentation index, see [llms.txt](https://kinemation.gitbook.io/fps-animation-framework/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinemation.gitbook.io/fps-animation-framework/fundamentals/animation-layers/weapon-collision.md).

# Weapon Collision

## Basics

This layer adjusts weapon position and rotation to avoid collision with objects in game world.

<figure><img src="/files/FEWMdElYD4GJjfMlelza" alt="" width="330"><figcaption></figcaption></figure>

## Settings

Settings for weapon blocking are defined in a Weapon Anim Asset:

<figure><img src="/files/pCV3Yv8n1LjJWBF1qnVv" alt="" width="348"><figcaption></figcaption></figure>

* **Weapon Length** - raycast length.
* **Start Offset** - ray start point offset.
* **Threshold** - max allowed clipping distance, if exceeded, a Rest Pose is activated.
* **Rest Pose** - applied whne threshold is exceeded.
