---
title: "init(forward:up:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avaudio3dvectororientation/init(forward:up:)"
---

# init(forward:up:)

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

## Declaration

```swift
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.

## See Also

### Creating a Vector Orientation

- [init()](avfaudio/avaudio3dvectororientation/init().md)
- [AVAudioMake3DVectorOrientation(_:_:)](avfaudio/avaudiomake3dvectororientation(_:_:).md)
