---
title: shapeIndex
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/collisioncasthit/shapeindex
---

# shapeIndex

The index of the shape that was hit.

## Declaration

```swift
var shapeIndex: Int { get }
```
