---
title: "init(position:target:up:)"
framework: spatial
role: symbol
role_heading: Initializer
path: "spatial/pose3dfloat/init(position:target:up:)"
---

# init(position:target:up:)

Creates a pose at the specified position that’s oriented towards a look at target.

## Declaration

```swift
init(position: Point3DFloat = .zero, target: Point3DFloat, up: Vector3DFloat = Vector3DFloat(x: 0, y: 1, z: 0))
```

## Parameters

- `position`: The position of the pose.
- `target`: The point that the ray looks at.
- `up`: The up direction.

## Discussion

Discussion note: This function creates a pose where +z is forward.
