# Collision

The Collision configuration is where you further configure what the ability can collide with and what occurs when a collision happens.

In this section you can:

* Choose if the ability can collide with the activating entity, terrain or other abilities.
* Set if the ability will reduce block durability when colliding with blocking targets or selecting for the ability collision to ignore all blocking/parrying done by the enemy.
* Set if hit animations can play, with an option to run a random or specific hit animation or a selected animation clip.&#x20;
* Define if objects require a certain Unity/ABC tag for the ability to collide with it&#x20;
* Define if objects with a certain Unity/ABC tag are ignored and will not collide with the ability
* Select the destroy type which determines how the ability is disabled (or not disabled) on collision

![](https://1755795481-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MhJfX9-yykdmh_ePph_%2F-Mj031g0ydZcYqn8w6uj%2F-Mj03idNKorJEJq-UB4A%2FCollision.PNG?alt=media\&token=8a3e9545-4c30-413c-88c2-72fea22f363f)

{% hint style="info" %}
It is possible to add placeholder tags to your objects and ability settings which can later be converted depending on the type of character in play. More information on this can be found in the [Core Components](https://dicelockstudio.gitbook.io/abc-toolkit/introduction/introduction-1#abc-tagging-and-tag-conversions) section.
{% endhint %}

## Destroy Settings

When the ability collides with an object ABC will look at the 'Impact Destroy' setting to know what to do after the collision.&#x20;

A list of the possible options are listed below which range from not destroying the ability (allowing for the duration of the ability to decide when it's disabled) to destroying on impact with all or certain type of objects.

&#x20;In this section is also a destroy delay and a way to define tags which the ability will never destroy on&#x20;

{% hint style="info" %}
If the ability collides with an object that fits the dropdown option selected then the ability destroy event will be raised.
{% endhint %}

| Destroy Type                          | Information                                                                                                                                                                                                                                          |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Destroy On All**                    | The ability destroy event will be raised when the ability collides with any object during play.                                                                                                                                                      |
| **Destroy On ABC Projectiles**        | The ability destroy event will be raised when the ability collides with any other ability during play.                                                                                                                                               |
| **Destroy On ABC StateManagers**      | The ability destroy event will be raised when the ability collides with any entity which has the ABC [State Manager](https://dicelockstudio.gitbook.io/abc-toolkit/state-manager/state-manager) component (i.e any object that can receive effects). |
| **Destroy On All ABC**                | The ability destroy event will be raised when the ability collides with another ability or an entity which has the ABC [State Manager](https://dicelockstudio.gitbook.io/abc-toolkit/state-manager/state-manager) component.                         |
| **Destroy On Target Only**            | The ability destroy event will be raised when the ability collides with the target/soft target the ability was activated on.                                                                                                                         |
| **Destroy On Terrain Only**           | The ability destroy event will be raised when the ability collides with the active terrain i.e the environment/ground.                                                                                                                               |
| **Don't Destroy**                     | The ability destroy event will never be raised from a collision. No collisions will ever destroy/disable the ability. It will simply be disabled through other events (like from ability duration)                                                   |
| **Destroy On All Not ABC Projectile** | The ability destroy event will be raised when the ability collides with any object that isn’t another ability.                                                                                                                                       |

{% hint style="warning" %}
It is highly recommended to read the tooltips in the blue boxes for a full description on what each setting does
{% endhint %}

|     |
| :-: |


---

# 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://dicelockstudio.gitbook.io/abc-toolkit/abc-components/collision-and-impact/collision.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.
