Graphics::world3dToScreen2d

From RAGE Multiplayer Wiki
Revision as of 06:02, 26 June 2018 by MrPancakers (talk | contribs) (Cleaned up page.)

Convert a world coordinate into its relative screen coordinate. (WorldToScreen)
Will return undefined if the given coordinate isn't in view.

Syntax

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

Required Arguments

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

Return value

  • object: x, y

Example

// todo

See also