
11-21-2011, 09:06 PM
|
Kavan
|
 |
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
|
|
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.

|
|
|