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.

Author
Message
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 20th Sep 2003 20:07 Edited at: 20th Sep 2003 20:11
could someone test this for me? Its just a simple test and from what i can tell the cube should move smoothly 1 unit at a time along the x axis until it gets to x=300, but it seems to jump there instantly and i can't figure out why? is it the code #EDIT I'm almost sure its my code because it runs exactly the same in classic.



any help appreciated


CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 20th Sep 2003 20:34 Edited at: 20th Sep 2003 20:35
because you're jumping 300 in one command me thinks. shouldn't it be by 1's or 5's or whatever so the loop runs many times before entire movement is complete? Or slow the loop with a wait command?

I'm not sure how curve value works.

-RUST-
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 20th Sep 2003 20:46
i'm definitely using it wrong, i just don't get it


CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 20th Sep 2003 20:53
try changing the 300 arg to something less and see what happens?

-RUST-
Flashing Blade
23
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 20th Sep 2003 21:29 Edited at: 20th Sep 2003 21:30
the return value is how far you need to jump according to the speed you give.

so 0 to 300 at a speed of 1 requires 1 jump of 300
0 to 300 at a speed of 3 = 3 jumps of 100

so do like this:

x#=0
do
stuff...
x#=curvevalue(300,x#,100)
loop


this will whizz up then taper off - ie curve
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 21st Sep 2003 11:00
thanks to the both of you!
@divide by zero, yours did come close the what i needed
@flashingblade, thanks for explaining it properly!


Login to post a reply

Server time is: 2026-07-25 07:00:18
Your offset time is: 2026-07-25 07:00:18