[]
Creates a spherical billboard that rotates around a specified object position.
public static void BillboardRef(out Matrix4x4 result, ref Vector3 objectPosition, ref Vector3 cameraPosition, ref Vector3 cameraUpVector, ref Vector3 cameraForwardVector)
Public Shared Sub BillboardRef(ByRef result As Matrix4x4, ByRef objectPosition As Vector3, ByRef cameraPosition As Vector3, ByRef cameraUpVector As Vector3, ByRef cameraForwardVector As Vector3)
| Type | Name | Description |
|---|---|---|
| Matrix4x4 | result | The created billboard. |
| 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. |