Click or drag to resize

MatrixCreateLookAt Method

Creates a new viewing Matrix.

Namespace:  SampSharp.GameMode
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public static Matrix CreateLookAt(
	Vector3 cameraPosition,
	Vector3 cameraTarget,
	Vector3 cameraUpVector
)

Parameters

cameraPosition
Type: SampSharp.GameModeVector3
Position of the camera.
cameraTarget
Type: SampSharp.GameModeVector3
Lookup vector of the camera.
cameraUpVector
Type: SampSharp.GameModeVector3
The direction of the upper edge of the camera.

Return Value

Type: Matrix
The viewing Matrix.
See Also