Click or drag to resize

Matrix4x4CreateConstrainedBillboard Method

Creates a cylindrical billboard that rotates around a specified axis.

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

Parameters

objectPosition
Type: Karamba.GeometryVector3
Position of the object the billboard will rotate around.
cameraPosition
Type: Karamba.GeometryVector3
Position of the camera.
rotateAxis
Type: Karamba.GeometryVector3
Axis to rotate the billboard around.
cameraForwardVector
Type: Karamba.GeometryVector3
Forward vector of the camera.
objectForwardVector
Type: Karamba.GeometryVector3
Forward vector of the object.

Return Value

Type: Matrix4x4
The created billboard matrix.
See Also