Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Sinus and Cosinus (https://forums.graalonline.com/forums/showthread.php?t=38992)

MattMrHat 10-07-2002 05:13 AM

Sinus and Cosinus
 
About "Sin" and "Cos"..
They are used to make something move in circles. Replace (a) with a number, or something. I can't really understand the explanation written in the commands.rtf so I am asking for help simplifying how to use these.

I kinda needed to make an NPC that makes things go in circles. o.o

sin( a ) the sinus of a; a is an angle in the radiant system (0...3.14)

cos( a ) the cosinus of a; a is an angle in the radiant system (0...3.14)

Graal2001_NAT 10-07-2002 05:38 AM

I thought it was sine and cosine :confused:

Amagius 10-07-2002 07:00 AM

Quote:

Originally posted by Graal2001_NAT
I thought it was sine and cosine :confused:
It is. Maybe it's another way or he's "going Greek."

Graal2001_NAT 10-07-2002 07:54 AM

Quote:

Originally posted by Kaimetsu


Abbreviations.

I ment why is he calling it Sinus and Cosinus, are those greek names like Amagius says they are?

MattMrHat 10-07-2002 08:55 AM

Kai, I told you im not that far in math yet. How am I supposed to be able to understand that? Im only 15, im not in college yet. :(
I simply wanted to know how to make fire explosions go in a circle :\

Graal2001_NAT 10-07-2002 08:58 AM

I sortof understand that site, I'm 14 and I can make things go around easy enough, just learn how to manipulate radians, there are plenty of scripts posted around these forums that you can learn off of, dig em up, dont expect someone to just hand you the answer

MattMrHat 10-07-2002 09:00 AM

Quote:

Originally posted by Kaimetsu

You don't need to know lots about maths to understand the link Prozac gave. It doesn't have any prerequisites other than an open mind and a desire to learn.

I dont even understand anything on the page.. Its all too complicated! Why cant it be easy, like this.circle=true
:(

MattMrHat 10-07-2002 09:13 AM

Quote:

Originally posted by Kaimetsu


Because that wouldn't make any sense.

Please explain how I would make explosions in a circle.. I will do it myself if I can understand how. I will fix your sig if you help me. :)

Graal2001_NAT 10-07-2002 09:21 AM

this.circle wouldnt make ANY sense, would it turn clockwise or counterclockwise, what would be the radius of the spin, how fast would it spin, and other things couldn't be decided just by saying this.circle = true, just stop being lazy and read scripts that use sin/cos, you will be much better off learning yourself, if someone just shows you it, you will never learn on your own, if you learn on your own, you have a much better chance to gain more knowlege and understanding

sage_chaozu 10-07-2002 10:00 AM

Re: Sinus and Cosinus
 
Quote:

Originally posted by MattMrHat
About "Sin" and "Cos"..
sin( a ) the sinus of a; a is an angle in the radiant system (0...3.14)

cos( a ) the cosinus of a; a is an angle in the radiant system (0...3.14)

I thought it was 0.00 to 6.28 o.o

MattMrHat 10-07-2002 11:58 AM

Quote:

Originally posted by Graal2001_NAT
you will be much better off learning yourself, if someone just shows you it, you will never learn on your own
That's not true, because Nyght taught me how to do tokenize, and I fully understand how to do that. All he did was explain what it does and how to use it.

Plus there wouldn't just be this.circle,
there would be stuff like.
this.speed=
this.radius=
or whatever else, so it would all fit together. :(

Graal2001_NAT 10-07-2002 12:01 PM

still inefficent, much better thing could be implimented into the graal exe
and nyght probably explained it to you, which is different than just showing you an example

MattMrHat 10-07-2002 12:09 PM

Quote:

Originally posted by Kaimetsu
http://forums.graal2001.com/forums/s...threadid=37196

If that doesn't help then I can't help you.

...There wasn't even a script there that makes things go in a circle.. you just drew a picture of a circle and explained what I already knew from that link you gave in your first post. (sin=opposite/hypotuse or whatever):(

Don't be upset with me because i'm new to this.. everyone was at some point.


All times are GMT +2. The time now is 08:14 PM.

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