Click or drag to resize
MatrixCreateLookAt Method
Creates a new viewing Matrix.

Namespace: SampSharp.GameMode
Assembly: SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.7.6221.37952
Syntax
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