Graphics::world3dToScreen2d: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (inverted function reference)
 
Line 1: Line 1:
Convert a world coordinate into its relative screen coordinate.  (WorldToScreen)<br>
Convert a world coordinate into its relative screen coordinate.  (WorldToScreen)<br>
Inverted function:[[Graphics::screen2dToWorld3d]]


==Syntax==
==Syntax==

Latest revision as of 19:26, 22 August 2020

Convert a world coordinate into its relative screen coordinate. (WorldToScreen)

Inverted function:Graphics::screen2dToWorld3d

Syntax

mp.game.graphics.world3dToScreen2d(new mp.Vector3(worldX, worldY, worldZ));

Required Arguments

  • worldX: float
  • worldY: float
  • worldZ: float

Return value

  • object: x, y
  • OR undefined if the given coordinate is not in view.

Example

// todo

See also