<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudio3DVectorOrientation/init(forward:up:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "s:So26AVAudio3DVectorOrientationV7forward2upABSo0A6DPointV_AFtcfc"
  },
  "title" : "init(forward:up:)"
}
-->

# init(forward:up:)

Creates a 3D vector orientation instance using the forward and up vectors you specify.

```
init(forward: AVAudio3DVector, up: AVAudio3DVector)
```

## Parameters

`forward`

The forward vector points in the direction that the listener faces.

`up`

The up vector is orthogonal to the forward vector and points upward from the listener’s head.

## Discussion

---

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)