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-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
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