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

# bufferRadius

The distance from obstacle edges that should also be considered impassable.

## Declaration

```swift
var bufferRadius: Float { get }
```

## Discussion

Discussion You set this property when creating a graph with the init(bufferRadius:minCoordinate:maxCoordinate:) or init(bufferRadius:minCoordinate:maxCoordinate:nodeClass:) initializer. Use the bufferRadius initializer parameter to take the size of potential travelers into account when determining navigability. After initialization, you can use this property to examine the buffer radius the graph was created with—for example, to draw a debugging overlay in your game UI that indicates passable and impassable areas.

## See Also

### Working with Nodes

- [connectUsingObstacles(node:)](gameplaykit/gkmeshgraph/connectusingobstacles(node:).md)
