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

# init(forward:)

Returns a rotation with the specified forward vector.

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

## 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.

---

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)