08-05-2007 00:24
Hello there

I got this little question for you guys and girls.
I am writing a script that needs to move a prim from one position (vector of course)
to an other.
I need to tie this to a percentage parameter meaning that when the user inputs 10% the prim moves towards its final position by 10% not all the way!.

It is easy to move the prim all the way e.g from <0.0,0.0,0.0> to <1.3,-2.4,3.6> by the use of llSetLocalPos() and putting as argument the first and then call it again with the last vector.

I want a script that smoothly moves the prim from A to B , gradually moving it in the inbetween positions.

It needs to be used with a timer too, moving the prim just a little bit (predefined) each timer event.

Can somebody help? or is there a script that does that ready to use?

thanx a lot