[]
Creates a spherical billboard that rotates around a specified object position.
public static Matrix4x4 Billboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector)
Public Shared Function Billboard(objectPosition As Vector3, cameraPosition As Vector3, cameraUpVector As Vector3, cameraForwardVector As Vector3) As Matrix4x4
| Type | Name | Description |
|---|---|---|
| Vector3 | objectPosition | The position of the object that the billboard will rotate around. |
| Vector3 | cameraPosition | The position of the camera. |
| Vector3 | cameraUpVector | The up vector of the camera. |
| Vector3 | cameraForwardVector | The forward vector of the camera. |
| Type | Description |
|---|---|
| Matrix4x4 | The created billboard. |