<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PerspectiveCameraComponent/init(near:far:fieldOfViewInDegrees:fieldOfViewOrientation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation26PerspectiveCameraComponentV4near3far20fieldOfViewInDegrees0hiJ11OrientationACSf_S2fAA0d5FieldijM0Otcfc"
  },
  "title" : "init(near:far:fieldOfViewInDegrees:fieldOfViewOrientation:)"
}
-->

# init(near:far:fieldOfViewInDegrees:fieldOfViewOrientation:)

Creates a perspective camera component from near and far clipping planes,
a field of view, and an orientation.

```
init(near: Float = 0.01, far: Float = .infinity, fieldOfViewInDegrees: Float = 60.0, fieldOfViewOrientation: CameraFieldOfViewOrientation = .vertical)
```

## Parameters

`near`

The minimum distance in meters from the camera that the camera can see.

`far`

The maximum distance in meters from the camera that the camera can see.

`fieldOfViewInDegrees`

The camera’s field of view in degrees.

`fieldOfViewOrientation`

The orientation of the field of view.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)