Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: jetxl on Thu 25/09/2003 14:40:21

Title: Calculator plug-in help
Post by: jetxl on Thu 25/09/2003 14:40:21
How does that sin( and cos( work.
It workes with integers so the value is always 0?
Title: Re:Calculator plug-in help
Post by: Ben on Thu 25/09/2003 19:58:36
Well, I've never used the plugin, but you should be able to multiply the sin and cosin functions so that they produce integers other than 0, 1 and -1..
Title: Re:Calculator plug-in help
Post by: jetxl on Mon 29/09/2003 09:28:40
Yes, but the computer round them off before I can do that.
for example 2000*(1/2) will be 0. so 2000* sin(60) is 0 as well.
sin( has to be multiplied in the sin( function itself.