<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKPath/isCyclical",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKPath(py)cyclical"
  },
  "title" : "isCyclical"
}
-->

# isCyclical

A Boolean value that determines whether the path loops around on itself (that is, the path’s end point connects to its start point).

```
var isCyclical: Bool { get set }
```

## Discussion

When you create a path with the [`initWithPoints:count:radius:cyclical:`](/documentation/GameplayKit/GKPath/initWithPoints:count:radius:cyclical:) or [`pathWithPoints:count:radius:cyclical:`](/documentation/GameplayKit/GKPath/pathWithPoints:count:radius:cyclical:) method, the order of vectors in the `points` parameter determines the order in which an agent with a path-following goal traverses the path. If the path is not cyclical, an agent traversing the path will stop at the end point. If the path is cyclical, the agent will loop around to the start point and continue following the path indefinitely.

---

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)