---
title: focalDistance
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scncamera/focaldistance
---

# focalDistance

The distance from the camera at which objects appear in sharp focus. Animatable.

## Declaration

```swift
var focalDistance: CGFloat { get set }
```

## Discussion

Discussion Objects at this distance from the camera appear perfectly focused. Objects nearer to or farther from the camera than this distance appear increasingly blurred (up to the amount of blur specified by the focalBlurRadius property). The default focal distance is 10.0. You can animate changes to this property’s value. See Animating SceneKit Content.

## See Also

### Deprecated

- [yFov](scenekit/scncamera/yfov.md)
- [xFov](scenekit/scncamera/xfov.md)
- [focalSize](scenekit/scncamera/focalsize.md)
- [focalBlurRadius](scenekit/scncamera/focalblurradius.md)
- [aperture](scenekit/scncamera/aperture.md)
