---
title: "entities(at:in:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/realitycoordinatespaceprojecting/entities(at:in:)"
---

# entities(at:in:)

Finds all the hit entities when projecting a ray from a starting point.

## Declaration

```swift
func entities(at point: CGPoint, in space: some CoordinateSpaceProtocol) -> [Entity]
```

## Parameters

- `point`: A point in the provided coordinate space.
- `space`: The 2D coordinate space in which to interpret the point.

## Return Value

Return Value A list of entities at point. Returns an empty array if no entities were found.

## Discussion

Discussion important: RealityKit performs hit tests (ray-casts) against collision shapes. Entities without a valid CollisionComponent are ignored by hit tests.
