![]() |
Clock
1 Attachment(s)
I'm sure we were all excited when we created our first clock... this my first. I did it through trial and error w/o looking at any other sources. It's good cuz i just learned trig a few weeks ago so i can finally use the knowledge i just learned in something useful. thought i'd share my discovery with the world thou theres probably a million clocks out there already.
|
:eek: Thats not that bad.. but the numbers/hands are a little off :P I haven't ever tried anything like that.. O.o; and im a scripter.. o.O
|
Give me the exact value of pi and i'll give you the perfect clock. and also this isn't by far my best npc, it's just the first npc i made that involves showpoly and trig
|
3.141592654
That's as far as my calculator goes. |
Exact value of pi to the millionth digit:
http://www.ecst.csuchico.edu/~tchung/pi_val.html |
Even if you didnt have the exact value its down to your x/y that you put.. its different from that of the clock hand
|
Quote:
|
Very nice Poki. =)
By the way,Jagen already made a nice clock too,do a forum search and you will see.. |
Nice, make the text go a color when the min hand is on it (e.g: Green)
So we can quickly read the time due to the x/y error. |
Quote:
3.141592 |
Quote:
|
Quote:
|
i mean 1 million digits after the decimal.
|
Nice Clock.
The hour hand is missing though. |
Pretty impressive my friend :) Just make it compatible with Timevar and you've made something useful ;)
---Shifter |
i did make it compatible with timevar, but it's already up on a server. also i left the hour hand out cuz it was just a quick test
|
Graal recognizes the value of "pi" as 3.14..whatever as far as i've seen, try using that?
|
Quote:
3.141592653589793238462643383279502884197169399375 105820974944592.jp/ grr it abbreviates the url there just put http:// infront of 3.14 (with out www.) It's still going ;x way big.. ack its freezing up my internet explorer x.x maybe its actually caluclating it and not just some numbers some one put up... hmm.. will see if its going in an hour |
type "pi" in graal
it goes like all the digits graal supports.... ... like houdiniman said.. |
oh great i didn't know that... thanks
|
Quote:
I was always making a var to give a value to pi. (e.g PI=3.14..) |
Me too every script I put pi=3.14. I haven't tried not putting that in before, I'll try it later when I have more time. I'm sure that they know what they're talking about though.
|
1 Attachment(s)
Ok, after doing a little looking for pi I found a few methods to get it.
NPC Code: I also tried to script Buffon's prabability method but it doesn't work too well. |
Quote:
hey, isn't pi a set variable? |
Quote:
|
Quote:
It does what tangent does in reverse. |
Quote:
You only need to put it in to a certain number of decimal places, graal doen't support all that many... And pi is built in and already set to the number of decimal places graal supports. or cares about. |
Quote:
|
Quote:
Making contact at a single point or along a line; touching but not intersecting. Irrelevant. n. A line, curve, or surface meeting another line, curve, or surface at a common point and sharing a common tangent line or tangent plane at that point. Abbr. tan Mathematics. The trigonometric function of an acute angle in a right triangle that is the ratio of the length of the side opposite the angle to the length of the side adjacent to the angle. A sudden digression or change of course: went off on a tangent during the courtroom argument. Music. An upright pin in a keyboard instrument, especially in a clavichord, that rises to sound a string when a key is depressed and stops the string at a preset length to set the pitch. -------------------------------------------------------------------------------- [Latin (lnea) tangns, tangent-, touching (line), present participle of tangere, to touch. See tag- in Indo-European Roots.] I think this really helps just think of it as being the opposite of this. |
is that the same as inverse tangent?
|
you lost me guys i was just testing out simple trig with my clock npc.
|
Quote:
|
| All times are GMT +2. The time now is 07:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.