---
title: "init(forward:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/rotation3dfloat/init(forward:)"
---

# init(forward:)

Returns a rotation with the specified forward vector.

## Declaration

```swift
init(forward: Vector3DFloat)
```

## Discussion

Discussion Parameter forward The forward direction. note: This function creates a rotation with an up vector that’s Vector3D(x: 0, y: 1, z: 0) and where +z is forward.
