[Include] Screen to World vice versa
#1

[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
  • 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);
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

If the coordinates aren't on the screen nothing will happen in ScreenToWorld (return 0)
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
Reply


Messages In This Thread
Screen to World vice versa - by Nero_3D - 09.12.2013, 21:43
Re: Screen to World vice versa - by Patrick - 09.12.2013, 21:50
Re: Screen to World vice versa - by Vinnyy - 10.12.2013, 01:54
Re: Screen to World vice versa - by Kar - 10.12.2013, 02:07
Re: Screen to World vice versa - by Sublime - 10.12.2013, 02:20
Re: Screen to World vice versa - by ViruZz - 10.12.2013, 04:25
Re: Screen to World vice versa - by kristo - 10.12.2013, 10:56
Re: Screen to World vice versa - by iJumbo - 10.12.2013, 11:05
Re: Screen to World vice versa - by Slice - 10.12.2013, 11:12
Re: Screen to World vice versa - by Vinnyy - 10.12.2013, 13:30
Re: Screen to World vice versa - by Kyle - 10.12.2013, 15:01
Re: Screen to World vice versa - by Vinnyy - 11.12.2013, 02:08
Re: Screen to World vice versa - by SkittlesAreFalling - 11.12.2013, 02:36
Re: Screen to World vice versa - by Kaperstone - 11.12.2013, 03:01
Re: Screen to World vice versa - by iZN - 11.12.2013, 06:17
Re: Screen to World vice versa - by Emmet_ - 11.12.2013, 11:22
AW: Re: Screen to World vice versa - by Nero_3D - 11.12.2013, 17:11
Re: AW: Re: Screen to World vice versa - by Vinnyy - 12.12.2013, 03:15
AW: Screen to World vice versa - by LeBoyce - 12.12.2013, 15:37
Respuesta: Screen to World vice versa - by adri1 - 14.06.2014, 20:34
AW: Respuesta: Screen to World vice versa - by Nero_3D - 14.06.2014, 21:10
Re: Screen to World vice versa - by VladimirMark - 14.06.2014, 21:31
Re: Screen to World vice versa - by MacT - 18.06.2014, 20:45
Respuesta: Screen to World vice versa - by adri1 - 21.06.2014, 21:10
AW: Screen to World vice versa - by Nero_3D - 21.06.2014, 23:42
Respuesta: Screen to World vice versa - by adri1 - 22.06.2014, 15:14
AW: Respuesta: Screen to World vice versa - by Nero_3D - 22.06.2014, 17:19
Respuesta: Screen to World vice versa - by adri1 - 22.06.2014, 17:23
Re: Screen to World vice versa - by iRaiDeN - 22.06.2014, 19:33
AW: Respuesta: Screen to World vice versa - by Nero_3D - 23.06.2014, 16:07
Re: Screen to World vice versa - by codectile - 04.06.2015, 09:38

Forum Jump:


Users browsing this thread: 4 Guest(s)