> For the complete documentation index, see [llms.txt](https://kinemation.gitbook.io/scriptable-animation-system/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/scriptable-animation-system/fundamentals/animator-layers/collision-layer.md).

# Collision Layer

<figure><img src="/files/A29O2SPMrw40kXCs48mx" alt="" width="563"><figcaption><p>Obstacle avoidance solver.</p></figcaption></figure>

## Description

**Collision Layer** is used to avoid weapon clipping through walls or other obstacles. It works by computing the clipping part of the weapon, and then applying the blocking pose respectively.&#x20;

{% hint style="success" %}
**Example:** if a weapon clips through a wall by 50%, only 50% of the pose will be applied.
{% endhint %}

## Properties

<figure><img src="/files/M61MgcR823fqRb2O9m5E" alt="" width="380"><figcaption></figcaption></figure>

* **Primary/Secondary Pose**: blocking pose applied during collision. The primary is activated when looking up, and the secondary one is activated when looking down.
* **Target Spcae**: desired space to apply pose in.
* **Smoothing Speed**: blocking smoothing speed.
* **Layer Mask**: filter mask for raycasts.
* **Ray Start Offset**: forward offset.
* **Barrel Length:** total length of the ray.
