Sin and cos
#1

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.

PHP код:
NewX StartPosX + (dist floatsin(alphadegrees));
NewY StartPosY + (dist floatcos(alphadegrees)); 
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.
Reply
#2

These functions are useful for creating a circle. if you want a circle of cars at dry lake.

Floatcos : https://sampwiki.blast.hk/wiki/Floatcos

Floatsin : https://sampwiki.blast.hk/wiki/Floatsin

KillerDVX,
Reply
#3

Lol, this is really easy. Thanks.. but i know what is wiki
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)