GetScreenFromWorldPosition

From Multi Theft Auto: Wiki
Revision as of 01:25, 13 November 2007 by EAi (talk | contribs)
Jump to navigation Jump to search

This function gets the screen position of a point in the world. This is useful for attaching 2D gui elements to parts of the world (e.g. players) or detecting if a point is on the screen (though it does not check if it is actually visible, you should use processLineOfSight for that).

Syntax

float float getScreenFromWorldPosition ( float x, float y, float z )