Vector3Unproject Method (Vector3, Single, Single, Single, Single, Single, Single, Matrix, Vector3)

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Projects a 3D vector from screen space into object space.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static void Unproject(
	ref Vector3 vector,
	float x,
	float y,
	float width,
	float height,
	float minZ,
	float maxZ,
	ref Matrix worldViewProjection,
	out Vector3 result
)

Parameters

vector
Type: RageVector3
The vector to project.
x
Type: SystemSingle
The X position of the viewport.
y
Type: SystemSingle
The Y position of the viewport.
width
Type: SystemSingle
The width of the viewport.
height
Type: SystemSingle
The height of the viewport.
minZ
Type: SystemSingle
The minimum depth of the viewport.
maxZ
Type: SystemSingle
The maximum depth of the viewport.
worldViewProjection
Type: RageMatrix
The combined world-view-projection matrix.
result
Type: RageVector3
When the method completes, contains the vector in object space.
See Also

Reference