forward
Unity's forward axis (0, 0, 1).
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
forward()
Unity's forward axis (0, 0, 1).
public static float3 forward()
Returns
Type | Description |
|---|---|
| float3 | The forward axis. |
Remarks
Matches <a href="https://docs.unity3d.com/ScriptReference/Vector3-forward.html">https://docs.unity3d.com/ScriptReference/Vector3-forward.html</a>
forward(quaternion)
Transforms the forward vector by a quaternion.
public static float3 forward(quaternion q)
Parameters
The quaternion transformation.
Returns
Type | Description |
|---|---|
| float3 | The forward vector transformed by the input quaternion. |