---
title: hitEntity
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/charactercontrollercomponent/collision/hitentity
---

# hitEntity

The entity that was hit by the character controller.

## Declaration

```swift
var hitEntity: Entity
```
