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.

Newcomers DBPro Corner / a question on math commands

Author
Message
JABBER
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Indiana, USA
Posted: 7th Sep 2006 18:26
I'm trying to get a value to represent the climbing and falling back the to ground of an object. But my math skills are terrible.
As the object climbs higher I need it to slow down till it climbs to say, a value of 20 than begins to fall back to the ground speeding up till it reaches 0.
I've been experimenting with "curve value" and the "EXP" command and I'm not getting the values I would expect, heres what I tried with the "curvevalue" command---


No matter what I change outside of the desination value makes no change. It always returns the desination value in the first loop of the program.
So to the math guys out there, Any insight on how to achieve such a curve? Or maybe I'm approaching this the wrong way? thanks for your time again M8's!

JABBER---->wearing the idiot cap!

Retired DEV team member Targetware.net
Retired DEV team memeber BF 1918 MOD
http://hosted.filefront.com/JABBER1975
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 7th Sep 2006 19:40
Well, is this what you mean?


(It could pretty easily be made into a function as well)

Change g and ThrowSpeed to differ the cubes speed and accelleration.

Det är väl så
JABBER
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Indiana, USA
Posted: 8th Sep 2006 01:22
WOW thanks Rudolpho, that is perfect I'll be studing this bit of code for a while, Looks like a good starting piont for the second part of the balistic code , the angle of the bounce THANKS

JABBER

Retired DEV team member Targetware.net
Retired DEV team memeber BF 1918 MOD
http://hosted.filefront.com/JABBER1975
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 9th Sep 2006 12:27
No problem

I think that the angle part is a bit more advanced; good luck

Det är väl så

Login to post a reply

Server time is: 2024-11-26 11:22:41
Your offset time is: 2024-11-26 11:22:41