Click or drag to resize

Matrix44CreateBillboard(Vector3, Vector3, Vector3, NullableVector3, Matrix44) Method

Creates a new Matrix44 for spherical billboarding that rotates around specified object position.

Namespace: CFX.Structures.Geometry
Assembly: CFX (in CFX.dll) Version: 2.1.1+880255d2f7380f340f56b243a51d99f2136bdae3
Syntax
public static void CreateBillboard(
	ref Vector3 objectPosition,
	ref Vector3 cameraPosition,
	ref Vector3 cameraUpVector,
	Vector3? cameraForwardVector,
	out Matrix44 result
)

Parameters

objectPosition  Vector3
Position of billboard object. It will rotate around that vector.
cameraPosition  Vector3
The camera position.
cameraUpVector  Vector3
The camera up vector.
cameraForwardVector  NullableVector3
Optional camera forward vector.
result  Matrix44
The Matrix44 for spherical billboarding as an output parameter.
See Also