Graphics::world3dToScreen2d

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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

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