---
title: obstacles
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkmeshgraph/obstacles
---

# obstacles

The list of obstacle objects in the graph, each of which describes a polygon-shaped impassable area.

## Declaration

```swift
var obstacles: [GKPolygonObstacle] { get }
```

## See Also

### Working with Obstacles

- [addObstacles(_:)](gameplaykit/gkmeshgraph/addobstacles(_:).md)
- [removeObstacles(_:)](gameplaykit/gkmeshgraph/removeobstacles(_:).md)
