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.

DarkBASIC Professional Discussion / how do curvevalue work ?

Author
Message
dman
21
Years of Service
User Offline
Joined: 21st Feb 2005
Location:
Posted: 20th Sep 2010 18:07
how curvevalue work, whats the formula ?

do it use something like linear interpolation : y2=(y1*(1-mu)+y2*mu)

please help

thanks
Zotoaster
21
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 20th Sep 2010 18:15
val = val + (val - oldval)/curve

Or something like that...

"everyone forgets a semi-colon sometimes." - Phaelax
dman
21
Years of Service
User Offline
Joined: 21st Feb 2005
Location:
Posted: 20th Sep 2010 21:24
That do not look right.
revenant chaos
DBPro Master
19
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 20th Sep 2010 21:35
I think it is:
CurrentVal = CurrentVal + ( (DestVal-CurrentVal) / SpeedVal )
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 20th Sep 2010 21:46
Yepp, that's the one.
dman
21
Years of Service
User Offline
Joined: 21st Feb 2005
Location:
Posted: 20th Sep 2010 21:52
ok I will try it.
thanks for the response.

Login to post a reply

Server time is: 2026-07-22 12:41:46
Your offset time is: 2026-07-22 12:41:46