Graphics::screen2dToWorld3d: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 2: Line 2:
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.game.graphics.screen2dToWorld3d(x, y[, test]);</syntaxhighlight>
mp.game.graphics.screen2dToWorld3d(coords2d);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''Vector3:''' 2d coord
*'''Vector3:''' 2d coord

Revision as of 15:20, 27 July 2018

Returns world position from screen position

Syntax

mp.game.graphics.screen2dToWorld3d(coords2d);

Required Arguments

  • Vector3: 2d coord

Return value

  • position: Vector3

Example

// todo

See also