# forward

> Unity's forward axis (0, 0, 1).

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.5/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## forward()

Unity's forward axis (0, 0, 1).

```csharp
public static float3 forward()
```

### Returns

| Type                                                                  | Description       |
| --------------------------------------------------------------------- | ----------------- |
| [float3](/engine/6000.5/script-reference/unity/mathematics/float3.md) | The forward axis. |

### Remarks

Matches \<a href="[https://docs.unity3d.com/ScriptReference/Vector3-forward.html"\&gt;https://docs.unity3d.com/ScriptReference/Vector3-forward.html\&lt;/a](https://docs.unity3d.com/ScriptReference/Vector3-forward.html"\&gt;https://docs.unity3d.com/ScriptReference/Vector3-forward.html\&lt;/a)>

## forward(quaternion)

Transforms the forward vector by a quaternion.

```csharp
public static float3 forward(quaternion q)
```

### Parameters

**** (\[quaternion]\(/engine/6000.5/script-reference/unity/mathematics/quaternion)): The quaternion transformation.

### Returns

| Type                                                                  | Description                                             |
| --------------------------------------------------------------------- | ------------------------------------------------------- |
| [float3](/engine/6000.5/script-reference/unity/mathematics/float3.md) | The forward vector transformed by the input quaternion. |
