Click or drag to resize

Matrix4x4CreateBillboard Method

Creates a spherical billboard that rotates around a specified object position.

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Matrix4x4 CreateBillboard(
	Vector3 objectPosition,
	Vector3 cameraPosition,
	Vector3 cameraUpVector,
	Vector3 cameraForwardVector
)

Parameters

objectPosition
Type: Karamba.GeometryVector3
Position of the object the billboard will rotate around.
cameraPosition
Type: Karamba.GeometryVector3
Position of the camera.
cameraUpVector
Type: Karamba.GeometryVector3
The up vector of the camera.
cameraForwardVector
Type: Karamba.GeometryVector3
The forward vector of the camera.

Return Value

Type: Matrix4x4
The created billboard matrix
See Also