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 / C++ equivalent code for curve value function

Author
Message
Darktib
17
Years of Service
User Offline
Joined: 18th Jun 2007
Location: France
Posted: 3rd Apr 2008 23:04
Hello,

For my project in C++ i need to smooth some paths founded by my pathfinder (in dbp i used curve value all the time) but i have no idea to code a function wich has the same behaviour than curve value(...). Could anybody help me?


RTS game project : |||%
NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 3rd Apr 2008 23:09 Edited at: 3rd Apr 2008 23:10
I've got a similar one in pseudocode.



It looked something like that when I programmed a crude helicopter sim for the DS.


I fail at life. No, really.
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 3rd Apr 2008 23:17
I use these in my lib, they should be the exact same as the DBP ones:



Antidote
19
Years of Service
User Offline
Joined: 18th Mar 2005
Location: San Francisco, CA
Posted: 4th Apr 2008 04:47


That's actually C# code but it's very similar.

Darktib
17
Years of Service
User Offline
Joined: 18th Jun 2007
Location: France
Posted: 12th Apr 2008 17:35
Thanks for the functions


RTS game project : |||%
SunnyKatt
18
Years of Service
User Offline
Joined: 16th Sep 2006
Location: USA
Posted: 12th Apr 2008 18:29
Next time post in programming talk.

zzz
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: Sweden
Posted: 12th Apr 2008 18:30 Edited at: 12th Apr 2008 18:35
Pretty much the same as Antidote wrote, just a little pseudofied:

Edit: For speed try experimenting with low values like 0.05 and such.

Login to post a reply

Server time is: 2024-11-20 04:41:50
Your offset time is: 2024-11-20 04:41:50