---
title: isDistanceEnabled
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkvoronoinoisesource/isdistanceenabled
---

# isDistanceEnabled

A Boolean value that specifies whether generated noise values incorporate the distance from each point to the nearest seed point.

## Declaration

```swift
var isDistanceEnabled: Bool { get set }
```

## Discussion

Discussion A Voronoi noise source generates a field of noise values by randomly picking seed points at random positions in a space, then dividing the space into cells so that all the points in a cell are closer to that cell’s seed point than to any other seed point. After dividing space into cells, the noise source randomly assigns a unique value to each. If this property’s value is false (the default), all points within a cell have the same value, creating a crystalline appearance. If this property’s value is true, the noise source adds to each point’s value the distance from that point to the nearest seed point. With a low value for the displacement property, adding distance to noise can create textures like cracked mud; with a high displacement value, adding distance creates textures like bubbling liquid.

## See Also

### Managing Noise Generation Parameters

- [frequency](gameplaykit/gkvoronoinoisesource/frequency.md)
- [displacement](gameplaykit/gkvoronoinoisesource/displacement.md)
- [seed](gameplaykit/gkvoronoinoisesource/seed.md)
