SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Discussion

Reply
 
Thread Tools Display Modes
Old 28/12/2017, 04:24 AM   #1
jamesbond007
Gangsta
 
jamesbond007's Avatar
 
Join Date: Oct 2009
Location: Canadia
Posts: 853
Reputation: 50
Default why... atan2 and angles

uggggghh, why the hell is there no atan2 and some math function documentations on samp wiki..

i wasted probably an hour trying to figure out why atan2(y1-y2,x1-x2) wouldnt work.. thats because its supposed to be atan2(x,y) in samp for SOME fkn reason ..
also GTA angles are just fucked in general because east is north and u have to take away 90 or do -angle its so annoying and having to add floatsin to X and floatcos to y which is complete opposite.
it took me some time to realize because i havent used these functions in a while and had to look at my older gamemodes and there is no wiki article..

i swear samp and gta devs did this just to mess with us

also the amount of wrong answers on the forums even from old high rep users is shocking, they type up one thing but when you try to run it on a script its not working because there is missing brackets () or pawn acts differently than C like with the atan2 case. so yeaaaaa sry i just had to vent somewhere
jamesbond007 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
atan2 rotation angle between 2 points Daslee Scripting Help 3 19/02/2013 02:34 PM
Diference between atan2 pawn vs C versions xxmitsu Help Archive 14 01/12/2010 04:00 PM
asin. acos, atan, atan2 Kovacs_Richard Help Archive 1 17/11/2009 08:55 AM
asin, acos, atan, atan2 funcs? xomka Help Archive 1 28/10/2009 09:35 AM


All times are GMT. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.