# Rotation.LookAt

## Overload 1

```csharp
static Rotation LookAt(Vector3 forward, Vector3 up)
```

Create a Rotation (quaternion) from a forward and up vector

### Parameters

- `forward` (`Vector3`)
- `up` (`Vector3`)

### Returns

`Rotation`

## Overload 2

```csharp
static Rotation LookAt(Vector3 forward)
```

Create a Rotation (quaternion) from a forward vector, using [Vector3.Up](/api/Vector3/Up) as
an up vector. This won't give nice results if `forward` is very close to straight
up or down, if that can happen you should use [Rotation.LookAt](/api/Rotation/LookAt).

### Parameters

- `forward` (`Vector3`)

### Returns

`Rotation`

Declared in [Rotation](/api/Rotation).
Assembly: `Sandbox.System`.
