09.12.2013, 21:43
(
Последний раз редактировалось Nero_3D; 26.09.2018 в 19:28.
)
[Include] ScreenToWorld (Alpha)
Welcome, to another useless release
Today I present the ScreenToWorld and WorldToScreen Include
Since there is nothing to explain two screens of each
But in WorldToScreen it always returns the screen x and y even if these are out of the visible grid
Download
https://github.com/Shiska/screentoworld
How to use
http://forum.sa-mp.com/showpost.php?...4&postcount=30
Welcome, to another useless release
Today I present the ScreenToWorld and WorldToScreen Include
Since there is nothing to explain two screens of each
- ScreenToWorld(playerid, Float: screenX, Float: screenY, & Float: vX, & Float: vY, & Float: vZ);
I enter in my debug mode screenX and screenY which is marked by the red dot, the basketball should appear behind it
- WorldToScreen(playerid, Float: x, Float: y, Float: z, & Float: screenX, & Float: screenY);
If the coordinates aren't on the screen nothing will happen in ScreenToWorld (return 0)Here I enter x, y and z relative to my position to make it easier for me, the first shows 5 to the right, 20 to the front and 5 up in the height
But in WorldToScreen it always returns the screen x and y even if these are out of the visible grid
Download
https://github.com/Shiska/screentoworld
How to use
http://forum.sa-mp.com/showpost.php?...4&postcount=30