Graphics::screen2dToWorld3d: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Returns world position from screen position ==Syntax== <syntaxhighlight lang="javascript"> mp.game.graphics.screen2dToWorld3d(x, y);</syntaxhighlight> === Required Arguments =...")
 
No edit summary
Line 2: Line 2:
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.game.graphics.screen2dToWorld3d(x, y);</syntaxhighlight>
mp.game.graphics.screen2dToWorld3d(x, y[, test]);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''x:''' int
*'''x:''' int

Revision as of 02:10, 30 January 2018

Returns world position from screen position

Syntax

mp.game.graphics.screen2dToWorld3d(x, y[, test]);

Required Arguments

  • x: int
  • y: int

Return value

  • position: Vector3

Example

// todo

See also