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
  #1  
Old 09-26-2002, 08:12 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Good stuff to know: trig basics

Here are some good fundamentals of trigonometry
that i remember being some quesitons from some
of you folks out there, on trig.

Its good to have this under your belt to create
some cool effects in graal.

http://online.cctt.org/physicslab/co...igonometry.asp
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 09-28-2002, 10:13 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
hmmm

hmm, good script kai

BUT ...

Quote:
we don't even need to continually use sin and cos
and i see in the script ...

Quote:
this.s=sin(this.anginc);
this.c=cos(this.anginc);
so .. to not use sin and cos ...
lets see.. ya, lets use sin and cos!
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #3  
Old 09-28-2002, 10:17 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
He does not use it continually though.

He uses it once in the created event but not in the timeout.
__________________
- R0bin
Reply With Quote
  #4  
Old 09-28-2002, 10:26 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
hmm

ok. i misread the context of the word "continually".
it could have meant, "in every script we use from here on out"
or it could have meant "in the timeouts of the scripts"
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #5  
Old 09-28-2002, 10:32 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Re: hmmm

Quote:
Originally posted by prozac424242
hmm, good script kai

BUT ...



and i see in the script ...



so .. to not use sin and cos ...
lets see.. ya, lets use sin and cos!
"continually..."
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #6  
Old 09-28-2002, 03:52 PM
Graal2001_Developer1 Graal2001_Developer1 is offline
Registered User
Join Date: Sep 2002
Location: Germany - Lübeck
Posts: 17
Graal2001_Developer1 is on a distinguished road
Send a message via ICQ to Graal2001_Developer1
is one precalculation with sin and cos so much faster? I don't think it takes so much speed even if you do it continously in a timeout or another loop :/
__________________
This is TDO
Nothing to say.. just need a webhost for images
Reply With Quote
  #7  
Old 09-29-2002, 04:24 AM
Graal2001_Developer1 Graal2001_Developer1 is offline
Registered User
Join Date: Sep 2002
Location: Germany - Lübeck
Posts: 17
Graal2001_Developer1 is on a distinguished road
Send a message via ICQ to Graal2001_Developer1
Quote:
Originally posted by Kaimetsu


It's many, many times faster. Do you know how sin and cos functions work? How they calculate the return values from the inputs? If so, you'll understand my point. It's true that repeatedly accessing sin and cos is fast enough for most purposes, but efficiency is a huge part of being a good scripter. If you ever wanna make something complicated like a 3D engine then you'll be glad of an alternative to slow trigonometric functions.
actually it was fast enough for everything I've done with it and there'll probably be no other person then you who even tries to add a 3D engine to Graal

@ know how to calculate -> my math teacher was a lazy guy back then (who probably did not know how to) so we just used calculators to get sinus and cosinus-values... -_-
__________________
This is TDO
Nothing to say.. just need a webhost for images
Reply With Quote
  #8  
Old 09-29-2002, 04:43 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Thumbs down

To complicated>.
__________________
V$:CONFL16T
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 06:12 AM.


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