Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-21-2011, 09:06 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Sin and cos functions wrong?

I've been doing an angle-based movement project, and haven't really done anything major with angles in GScript until now.
When I use a variable which is equal to 180 and take the sine of it using sin(), instead of echoing 0 for the sine value of 180 (which I know it should), it echoes a value of -0.801.
The same goes for the cosine value of 180. It echoes a value of -0.598 instead of -1.

Any reason for this, or is there something wrong with the functions?
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote
 


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

Forum Jump


All times are GMT +2. The time now is 02:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.