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

# computePath(from:to:)

## Declaration

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

## See Also

### Computing paths

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