[]
Creates a world matrix with the specified parameters.
public static void WorldRef(out Matrix4x4 result, ref Vector3 position, ref Vector3 forward, ref Vector3 up)
Type | Name | Description |
---|---|---|
Matrix4x4 | result | The world matrix. |
Vector3 | position | The position of the object (used in translation operations). |
Vector3 | forward | The forward direction of the object. |
Vector3 | up | The upward direction of the object. Its value is usually [0, 1, 0]. |