---
title: "computePath(to:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/navigationcontroller/computepath(to:)"
---

# computePath(to:)

## Declaration

```swift
func computePath(to targetPosition: SIMD3<Float>) async -> [NavigationMeshResource.PathNode]?
```

## See Also

### Computing paths

- [computePath(from:to:)](realitykit/navigationcontroller/computepath(from:to:).md)
