# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kinemation.gitbook.io/scriptable-animation-system/fundamentals/animator-layers/collision-layer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
