# Stabbing

## Stabbing (Early Release)

The **Stabber** component will be able to stab any **Stabbable** that enters its capsule collider trigger with a matching stab index. Joint settings are based on [Configurable Joint](https://docs.unity3d.com/Manual/class-ConfigurableJoint.html) settings

## Stabber

Stabber goes on a grabbable and creates a joint with a **Stabbable** when it overlaps the `Stab Capsule`

<div align="left"><img src="https://2959669391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5zKO0EvOjzUDeT2aiFk3%2Fuploads%2FuEpeBtTDFZD8fzf9KsNt%2Fimage.png?alt=media&#x26;token=b5637913-0cce-4c7c-a6cd-fbd6831c07b6" alt=""></div>

`Stab Capsule` is determines the trigger able of the stabber. This capsule must actively overlap a stabbable to trigger and maintain a stab

`Stabbable Layers` the physics layer that stabbing can occur on. If set to nothing will default to grabbable

`Stab Index` must match the stab index on the stabbable to activate stabbing

`Max Stabs` the maximum stabs at once this stabber can perform

`Joint Settings` these determine the settings of the generated [Configurable Joint](https://docs.unity3d.com/Manual/class-ConfigurableJoint.html) on stab

`Limit` represents the how far the stabber can go into a stabbable

`Position Dampening Multiplier` how much force is required to push this object through the stabbable

`Rotation Dampening Multiplier` how much force is required to rotate this object through the stabbable&#x20;

## Stabbable

<div align="left"><img src="https://2959669391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5zKO0EvOjzUDeT2aiFk3%2Fuploads%2F6K902qGUzK43qzLYlcjd%2Fimage.png?alt=media&#x26;token=2df087b7-376e-40e8-9443-ecca6422f253" alt=""></div>

`Stab Index` must match the stab index on the stabbable to activate stabbing

`Max Stabs` the maximum stabs at once this stabber can perform

`Position Dampener` how much force is required to push this object through the stabbable

`Rotation Dampener` how much force is required to rotate this object through the stabbable&#x20;

`Parent On Stab` whether or not to parent this object to the player when stabbed to create a smooth movement with the player/teleportation. Should be enabled for small dynamic objects, disabled for large or static objects &#x20;
