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 Discussion / Newvalue() explanation?

Author
Message
Aramil
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location: Wherever my feet take me
Posted: 1st Feb 2006 15:56
Hello,

Well...I've moved on. I'm working in C++ now rather than DarkBASIC. Unfortunately, this means that many functions I used in DarkBASIC are no longer available to me in C++. Is there anyone who can please explain to me the mathematics for the newvalue() commands? Any help would be greatly appreciated. Thanks.

-Aramil
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 1st Feb 2006 18:12
It's something like:

newXvalue ( curr, angle, step ) = curr + sin(angle)*step
newZvalue ( curr, angle, step ) = curr + cos(angle)*step

Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 1st Feb 2006 20:13
yeah, basically a crappier/longer version of Sin()

re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 1st Feb 2006 20:49
the only one i found usefull was newyvalue.

Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 1st Feb 2006 20:51
newyvalue is just like curr+tan(angle)*speed

re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 1st Feb 2006 20:53
doh
well, i learn something new every day. im in calculus, i should know that (damn us schooling!) thanks.

Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 1st Feb 2006 20:56
I haven't done calculus yet..

Aramil
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location: Wherever my feet take me
Posted: 2nd Feb 2006 01:27
Thanks, guys! I guess I should have known that, since I've taken trig. Lol...now here's the part where I feel stupid. Thanks again.

-Aramil

Login to post a reply

Server time is: 2025-05-23 10:51:38
Your offset time is: 2025-05-23 10:51:38