|
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
)
Public Shared Function CreateConstrainedBillboard (
objectPosition As Vector3,
cameraPosition As Vector3,
rotateAxis As Vector3,
cameraForwardVector As Vector3,
objectForwardVector As Vector3
) As Matrix4x4
public:
static Matrix4x4 CreateConstrainedBillboard(
Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 rotateAxis,
Vector3 cameraForwardVector,
Vector3 objectForwardVector
)
static member CreateConstrainedBillboard :
objectPosition : Vector3 *
cameraPosition : Vector3 *
rotateAxis : Vector3 *
cameraForwardVector : Vector3 *
objectForwardVector : Vector3 -> Matrix4x4
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:
Matrix4x4The created billboard matrix.
See Also