[]
Creates a cylindrical billboard that rotates around a specified axis.
public static void ConstrainedBillboardRef(out Matrix4x4 result, ref Vector3 objectPosition, ref Vector3 cameraPosition, ref Vector3 rotateAxis, ref Vector3 cameraForwardVector, ref Vector3 objectForwardVector)
Public Shared Sub ConstrainedBillboardRef(ByRef result As Matrix4x4, ByRef objectPosition As Vector3, ByRef cameraPosition As Vector3, ByRef rotateAxis As Vector3, ByRef cameraForwardVector As Vector3, ByRef objectForwardVector As Vector3)
| Type | Name | Description |
|---|---|---|
| Matrix4x4 | result | The billboard matrix. |
| 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. |