Click or drag to resize

MatrixCreateLookAt Method

Creates a new viewing Matrix.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static Matrix CreateLookAt(
	Vector3 cameraPosition,
	Vector3 cameraTarget,
	Vector3 cameraUpVector
)

Parameters

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

Return Value

Type: Matrix
The viewing Matrix.
See Also