Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / The curvevalue command. How does it work?

Author
Message
Antidote
19
Years of Service
User Offline
Joined: 18th Mar 2005
Location: San Francisco, CA
Posted: 16th Jun 2007 15:59
I haven't been posting a lot in these forums recently because I've been working with Microsoft's XNA game studio express. I think it's a great development tool, but I really miss the curvevalue() command from db. I'd like to write my own in c# but I'm not entirely sure how to do it since I can't think of how it works. So I'm wondering if someone actually knows how it works, or we can all just collaborate and pow-wow (brainstorm) until we have a pretty good guess as to how the function works.


Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 16th Jun 2007 16:12
I think it's something like this:

new value = current value + ((destination - current) / rate)

Antidote
19
Years of Service
User Offline
Joined: 18th Mar 2005
Location: San Francisco, CA
Posted: 16th Jun 2007 16:26
Wow based on my tests that seems entirely accurate. Well that was easy, thanks a lot!


Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 16th Jun 2007 18:59
Technically never reaches its target...

-= Out here in the fields, I fight for my meals =-
Antidote
19
Years of Service
User Offline
Joined: 18th Mar 2005
Location: San Francisco, CA
Posted: 17th Jun 2007 02:55
yes but since the decimal is limited to so many places it eventually stops.


Login to post a reply

Server time is: 2024-11-18 19:39:10
Your offset time is: 2024-11-18 19:39:10