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 11-21-2011, 09:18 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Use radian values, not degrees. pi is a built-in variable that'll help a lot.
Reply With Quote
  #2  
Old 11-22-2011, 05:36 PM
Sinkler Sinkler is offline
.
Sinkler's Avatar
Join Date: Jul 2004
Location: Washington, D.C.
Posts: 683
Sinkler is a jewel in the roughSinkler is a jewel in the rough
Send a message via AIM to Sinkler
Quote:
Originally Posted by Crow View Post
Use radian values, not degrees. pi is a built-in variable that'll help a lot.
I know nothing about scripting, but does it have something to do with units? In calculus, we're not permitted to use degrees due to the units associated with degrees. Is this a fair assumption?

--This is coming from an unknowledgeable person in regards to scripting--
__________________
Hello!

If you need to get in contact with me, please send an e-mail to: [email protected]



"He who knows only his own side of the case knows little of that."

-John Stuart Mill
Reply With Quote
  #3  
Old 11-22-2011, 05:59 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Sinkler View Post
I know nothing about scripting, but does it have something to do with units? In calculus, we're not permitted to use degrees due to the units associated with degrees. Is this a fair assumption?
You know how your calculator has a mode for radians and a mode for degrees? In programming, radians are almost always used.

I don't really know what you mean by "units associated with degrees" but that sounds like a silly reason to use radians.
__________________
Reply With Quote
  #4  
Old 11-22-2011, 11:08 PM
Sinkler Sinkler is offline
.
Sinkler's Avatar
Join Date: Jul 2004
Location: Washington, D.C.
Posts: 683
Sinkler is a jewel in the roughSinkler is a jewel in the rough
Send a message via AIM to Sinkler
Quote:
Originally Posted by cbk1994 View Post
You know how your calculator has a mode for radians and a mode for degrees? In programming, radians are almost always used.

I don't really know what you mean by "units associated with degrees" but that sounds like a silly reason to use radians.
When using related rates, some problems (if you use degrees) can end up with:

"___ degrees/hour"

Which doesn't make sense (if we're talking angular calculus). That's why Radians is the preferable mode in calculus. There are no units.
__________________
Hello!

If you need to get in contact with me, please send an e-mail to: [email protected]



"He who knows only his own side of the case knows little of that."

-John Stuart Mill
Reply With Quote
  #5  
Old 11-23-2011, 12:58 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Sinkler View Post
Which doesn't make sense (if we're talking angular calculus). That's why Radians is the preferable mode in calculus. There are no units.
Radians are units . You just generally don't write it because it's assumed. There's also radians per second and similar.
__________________
Reply With Quote
  #6  
Old 11-23-2011, 01:17 AM
Sinkler Sinkler is offline
.
Sinkler's Avatar
Join Date: Jul 2004
Location: Washington, D.C.
Posts: 683
Sinkler is a jewel in the roughSinkler is a jewel in the rough
Send a message via AIM to Sinkler
Quote:
Originally Posted by cbk1994 View Post
Radians are units . You just generally don't write it because it's assumed. There's also radians per second and similar.
Radians have a mathematical "naturalness" that leads to a more elegant formulation of a number of important results.
__________________
Hello!

If you need to get in contact with me, please send an e-mail to: [email protected]



"He who knows only his own side of the case knows little of that."

-John Stuart Mill
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 02:45 PM.


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