11.07.2015, 17:30
Hi guys. I have a big problem, I try create clock speedometer, I have seen filterscritps but I don't understant this:
(this calculate new x, y for textdraw, dependent of speed). I know, I can use done scripts, but I want create my own.
I have no idea how this works. When I can use floatsin and floatcos? How can I use this? Please explain me how this works.
Ps. sorry for broken english, this is not my native language.
(this calculate new x, y for textdraw, dependent of speed). I know, I can use done scripts, but I want create my own.
PHP код:
NewX = StartPosX + (dist * floatsin(alpha, degrees));
NewY = StartPosY + (dist * floatcos(alpha, degrees));
Ps. sorry for broken english, this is not my native language.