[]
Creates a cylindrical billboard that rotates around a specified axis.
public static Matrix4x4 ConstrainedBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3 cameraForwardVector, Vector3 objectForwardVector)
Public Shared Function ConstrainedBillboard(objectPosition As Vector3, cameraPosition As Vector3, rotateAxis As Vector3, cameraForwardVector As Vector3, objectForwardVector 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 | rotateAxis | The axis to rotate the billboard around. |
| Vector3 | cameraForwardVector | The forward vector of the camera. |
| Vector3 | objectForwardVector | The forward vector of the object. |
| Type | Description |
|---|---|
| Matrix4x4 | The billboard matrix. |