Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-07-2002, 05:13 AM
MattMrHat MattMrHat is offline
Banned
Join Date: Aug 2002
Location: United States Age: 15
Posts: 111
MattMrHat is on a distinguished road
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)
  #2  
Old 10-07-2002, 05:38 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
I thought it was sine and cosine
__________________
GONE, BAI
  #3  
Old 10-07-2002, 07:00 AM
Amagius Amagius is offline
Cult of the Winky
Amagius's Avatar
Join Date: Sep 2001
Location: The USoCR's friendly twin
Posts: 3,225
Amagius is on a distinguished road
Quote:
Originally posted by Graal2001_NAT
I thought it was sine and cosine
It is. Maybe it's another way or he's "going Greek."
__________________
[AIM:RitaReplusa]
mail:[email protected]]
  #4  
Old 10-07-2002, 07:54 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
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?
__________________
GONE, BAI
  #5  
Old 10-07-2002, 08:55 AM
MattMrHat MattMrHat is offline
Banned
Join Date: Aug 2002
Location: United States Age: 15
Posts: 111
MattMrHat is on a distinguished road
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
  #6  
Old 10-07-2002, 08:58 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
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
__________________
GONE, BAI
  #7  
Old 10-07-2002, 09:00 AM
MattMrHat MattMrHat is offline
Banned
Join Date: Aug 2002
Location: United States Age: 15
Posts: 111
MattMrHat is on a distinguished road
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
  #8  
Old 10-07-2002, 09:13 AM
MattMrHat MattMrHat is offline
Banned
Join Date: Aug 2002
Location: United States Age: 15
Posts: 111
MattMrHat is on a distinguished road
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.
  #9  
Old 10-07-2002, 09:21 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
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
__________________
GONE, BAI
  #10  
Old 10-07-2002, 10:00 AM
sage_chaozu sage_chaozu is offline
Registered User
sage_chaozu's Avatar
Join Date: Feb 2002
Location: Florida, USA
Posts: 143
sage_chaozu will become famous soon enough
Send a message via ICQ to sage_chaozu Send a message via AIM to sage_chaozu Send a message via MSN to sage_chaozu Send a message via Yahoo to sage_chaozu
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
  #11  
Old 10-07-2002, 11:58 AM
MattMrHat MattMrHat is offline
Banned
Join Date: Aug 2002
Location: United States Age: 15
Posts: 111
MattMrHat is on a distinguished road
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.
  #12  
Old 10-07-2002, 12:01 PM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
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
__________________
GONE, BAI
  #13  
Old 10-07-2002, 12:09 PM
MattMrHat MattMrHat is offline
Banned
Join Date: Aug 2002
Location: United States Age: 15
Posts: 111
MattMrHat is on a distinguished road
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.
Closed Thread


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 11:50 AM.


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