---
title: radius
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gksphereobstacle/radius
---

# radius

The radius of the obstacle.

## Declaration

```swift
var radius: Float { get set }
```

## Discussion

Discussion The coordinate system for agents and obstacles is arbitrary; you may choose how to map agent and obstacle positions and sizes into your game scene.

## See Also

### Placing an Obstacle

- [position](gameplaykit/gksphereobstacle/position.md)
