Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 02-07-2002, 03:54 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Kaimetsu


Well now that's just wrong.

3D stuff: Create a plane just in front of the player and find intersections between it and the line from the player to the object. Find the position of the intersection point relative to the player's LOS and bingo.
*i hardly use traingles in graal
Reply With Quote
  #17  
Old 02-07-2002, 09:30 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Phytagoras is used for Z-Axis movement... hmmm this sounds logical... *slaps his head* omg I hadn't thought it should be that easy k thx people ^_^
__________________
No Webhost at the moment
Reply With Quote
  #18  
Old 02-07-2002, 10:19 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I have 1 question, How do Arcus Tangens (arctan) Work?
What does it do with the input you give it?
BTW, a LOG() scripting command would be nice... eg, finding how many place values something has. (could find how many decimal valuse too by doing int(log(var%1)) )

Logarithms are handy gagets
__________________

subliminal message: 1+1=3
Reply With Quote
  #19  
Old 02-08-2002, 12:38 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu


Ah, I see you assume that we'd be talking base 10 logarithms. Bear in mind, grasshopper, that this is not the only way of using logs.
lol grasshopper.


can someone give me an accurate description of what:
1.) Logarithms are.
2.) Vector...???
3.) Where would you use pythagoreus?
4.) How can u use things like arctan to do anything useful?

I am hoping my new reading experiance Elementary Modern Physics (Second Edition) by Richard T. Weidner / Robert L. Sells will help me, but if anyone has any other suggestions on criteria i should read to get more close to such math please butt in.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #20  
Old 02-08-2002, 07:48 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
Explanation of Things

Logs are just exponential equations written differently.

LOG x = x^b i believe.
b

Math teachers use it just to confuse you

Im not sure if arctan is co-tangent or just tangent.

Tangent is sin(t)/cos(t)
Cotangent is cos(t)/sin(t)

Sin is a term used in trigenometry which is equal to to point y on a circle, divided by the radius of the circle

so a circle with the radious 1, and the point on 0,1
would be sin(1).....which is equal to a number of radians (a circle divided evenly). the number of radians is for this (sin(1)) 1pi/2
where pi is that symbol that looks like half the capital letter H. (roughly 3.14).

cos (which is cosine) is the same, except with the x value of the point.

In order to find some points on a circle, pythagorean therom needs to be used.

say you dont know the radious. The point is on 2,1. Supposing that the circle's center is positioned on the origin, this is where pt would come in. So, side a would be 2, because thats how many units you go over on the graph. Side b is 1, since that is how many units you go up. Now you have 2 legs of a triangle. The third leg, is from the point on the circle, to the origin. side c. Side c*c= a*a + b*b
c*c= 2*2 +1*1
c*c=4+1
c*c=5
c=sqrt(5)
so, the radious of the circle is the square root of 5 (which cannot evenly be factored out).


Im not a teacher of mathematics, so some things may be off or just wrong. I'm only in the 10th grade, and in the second semester of Math Anaysis (sp). So, if someone else can explain it better, go ahead . I hope i helped you.

A math education of Geometry or higher is recommended for scripters.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #21  
Old 02-08-2002, 08:03 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
ah, the invers of tan? Great thanks, I was stumped
__________________

subliminal message: 1+1=3
Reply With Quote
  #22  
Old 02-08-2002, 08:08 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Pythegoreum theorum (i can never spell that crap)
can be used really well for making stuff around the player. If you want to find a certain area around the player. Like a square, you just do it twice, or if you dont want to make a circle area around the player but a triangular one ..and etc.. whatever ur mind puts to it.. and yeah triangles are not used much . Circles are best
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #23  
Old 02-08-2002, 10:24 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
arctanget is used for finding a angel of a right trangel
arctangent is notated as tan^-1 tangent to -1 power..
same for arccos, arccot and so on

Now sec is the opposite of sin which means if sine = 1/2 sec = 2/1

sin = y/hypotenuse
cos = x/hypotenuse
sec = hypotenuse/x
csc = hypotenuse/y
tan=sin/cos=y/x
cot=cos/sin=x/y

I am pretty sure

i use pythageorm theom for.. finding the distance.. between 2 objects
but its easyer to just use the distance formula
which is
squareroot((x1-x2)^2+(y1-y2)^2)
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #24  
Old 02-08-2002, 11:56 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Wow thanks a lot, I can do the math, but only if I know how the math is expressed. I too am in the 10th grade, I take IMP (Interactive Mathematics Program) and it is the crappiest education you'll ever get - heck though, easy A. Outside of school I take college classes and try to learn as much as I can since my teacher is as dumb as a goat. You have learned me well though and dragon, I am still on ofter im me I will show you how far i am on the system.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #25  
Old 02-08-2002, 11:59 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by TDK_RC6
(A x A) + (B x B) = (C x C)
Actually,

C^2=A^2+B^2-2AC*COS(C) (I think.)
C^2=A^2+B^2 is only for Right Triangles.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #26  
Old 02-08-2002, 01:54 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
The hypotenuse is the side oposite the right angle, correct ?
Reply With Quote
  #27  
Old 02-08-2002, 11:32 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: Re: Explanation of Things

Quote:
Originally posted by Kaimetsu


Wrongo. Something similar to that, but not quite.

Also your definitions of sin and cos are overly convoluted. You'd have been better to just post the Taylor expansion

And dragoonvec, do you realise that the so-called "distance formula" IS pythagoras?

And triangles are used far more than circles, even if you don't realise you're using them.
hahaha taylor expansion...lol...well he helped me so . I didn't really ever think to use pothagraes to get points on a circle and get the radius. Isn't it amazing how well math works? >.<
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #28  
Old 02-09-2002, 05:56 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
I spent my entire school day studying my algebra 2 book about the sines and cosines and asking people in pre cal and trig to help me learn. I learned a little but dont understand it fully
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #29  
Old 02-09-2002, 07:01 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by lordhelmut
I spent my entire school day studying my algebra 2 book about the sines and cosines and asking people in pre cal and trig to help me learn. I learned a little but dont understand it fully
I'm in Pre Calculus... Just starting Chapter 6, Trigonometry. Fun.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #30  
Old 02-09-2002, 10:26 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
my school has Trig and Pre-Calc separated into two diff semesters, I just finished Trig.
But anyway, when you think about it, sin-cos circles are just alot of right triangles!

cause
sin(a) = sideA/hypotenuse
and
cos(a) = sideB/hypotenuse
...
tan(a) = sideA/sideB
and so on....
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
Reply


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 07:03 AM.


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