[]
Creates a view matrix.
public static Matrix4x4 LookAt(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector)
| Type | Name | Description |
|---|---|---|
| Vector3 | cameraPosition | The position of the camera. |
| Vector3 | cameraTarget | The target towards which the camera is pointing. |
| Vector3 | cameraUpVector | The direction that is "up" from the camera's point of view. |
| Type | Description |
|---|---|
| Matrix4x4 | The view matrix. |