# collider

> The collider that was hit by the controller.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
public Collider collider { get; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void OnControllerColliderHit(ControllerColliderHit hit)
    {
        // Call a damage function on the object we hit.
        hit.gameObject.SendMessage("ApplyDamage", 5);
    }
}
```
