<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/NavigationMeshResource/OffMeshConnection",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22NavigationMeshResourceC03OffD10ConnectionV"
  },
  "title" : "NavigationMeshResource.OffMeshConnection"
}
-->

# NavigationMeshResource.OffMeshConnection

A container for the data associated with an off-mesh connection.

```
struct OffMeshConnection
```

## Topics

### Creating a connection

[`init(startPoint: SIMD3<Float>, endPoint: SIMD3<Float>, radius: Float, isBidirectional: Bool, label: String)`](/documentation/RealityKit/NavigationMeshResource/OffMeshConnection/init(startPoint:endPoint:radius:isBidirectional:label:))

### Defining the path

[`var startPoint: SIMD3<Float>`](/documentation/RealityKit/NavigationMeshResource/OffMeshConnection/startPoint)

The start point of the off-mesh connection.

[`var endPoint: SIMD3<Float>`](/documentation/RealityKit/NavigationMeshResource/OffMeshConnection/endPoint)

The end point of the off-mesh connection.

[`var isBidirectional: Bool`](/documentation/RealityKit/NavigationMeshResource/OffMeshConnection/isBidirectional)

Whether the connection is bidirectional.
If false, pathfinds will only allow going from startPoint to endPoint.
If true, pathfinds will allow going in both directions.

### Instance Properties

[`var label: String`](/documentation/RealityKit/NavigationMeshResource/OffMeshConnection/label)

The label on the connection for other systems to know what type of movement should occur here.

[`var radius: Float`](/documentation/RealityKit/NavigationMeshResource/OffMeshConnection/radius)

The distance to the connection that counts as being close enough to use it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)