# ColliderRollback (Pro Feature)

## Description

This component is used for rolling back colliders on objects for the purpose of lag compensation. You can find out more about it in the dedicated guide for this feature: [Raycast](/docs/guides/features/lag-compensation/raycast.md)

## Settings

<div align="left"><figure><img src="/files/jV1d2YMI1o7uwVF2DSDd" alt=""><figcaption><p>Default settings</p></figcaption></figure></div>

### :gear: **Bounding Box**

> This configures how a bounding box is added to the object. When set to **Disabled** a bounding box will not be added. Additional settings are displayed when not set to **Disabled**.

### :gear: **Physics Type**

> This is which type of physics you plan on rolling back, and determines if a Physics collider is added, or Physics2D collider.

### :gear: **Bounding Box Size**

> This determines how large of a bounding box to add. Typically a value three times larger than the world space of your object is sufficient. For example, if your object is a Vector3.one cube, this value would Vector3(3f, 3f, 3f). If an object is exceptionally fast moving consider making this larger.

### :gear: **Collider Parents**

> These are transforms you wish to send back in time when performing a rollback. For best results put your hitboxes on their own transform, which is a child of the object the hitbox is for. A setup example is rovided as a demo within `FishNet\Demos\ColliderRollback`.


---

# 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://fish-networking.gitbook.io/docs/fishnet-building-blocks/components/colliderrollback.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.
