Matrix4x4CreateWorld Method

Creates a world matrix with the specified parameters.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static Matrix4x4 CreateWorld(
	Vector3 position,
	Vector3 forward,
	Vector3 up
)

Parameters

position  Vector3
The position of the object; used in translation operations.
forward  Vector3
Forward direction of the object.
up  Vector3
Upward direction of the object; usually [0, 1, 0].

Return Value

Matrix4x4
The world matrix.

See Also