Scripts / Pls help with math statements that does not work right

Author
Message
roandoom
8
Years of Service
User Offline
Joined: 24th Mar 2016
Location:
Posted: 2nd Oct 2016 19:05
Please if anyone can please help me with this , I want to use the math.cos method but it does not work correctly. If i put in : math.cos(90) , it should give a value of 0 but in gameguru it gives some other value.
Now i can't use the cos statements because it does not work.
If i have use the wrong statement then please tell me the right statement because i can't do anything with the one i know now.
Thank you so much to any one who can help me out here.
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 2nd Oct 2016 20:30 Edited at: 2nd Oct 2016 20:31
You need to convert to radians first, i.e.
Been there, done that, got all the T-Shirts!
PM
roandoom
8
Years of Service
User Offline
Joined: 24th Mar 2016
Location:
Posted: 2nd Oct 2016 23:30
Thanks for the fast reply and help , I was really struggeling and could not go further with the rest of my code.
No i can continue with it , Thanks a lot.
PM

Login to post a reply

Server time is: 2024-12-22 23:06:35
Your offset time is: 2024-12-22 23:06:35