[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 Vector3 Unproject( Vector3 vector, float x, float y, float width, float height, float minZ, float maxZ, Matrix worldViewProjection )
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.
Return Value
Type: Vector3The vector in object space.
See Also