These forums are CLOSED. Please visit the new forums HERE
alternative to llMoveToTarget? |
|
Senuka Harbinger
A-Life, one bit at a time
![]() Join date: 24 Oct 2005
Posts: 491
|
11-23-2005 22:34
For a certain movement I want out of one of my projects, llMoveToTarget doesn't behave right; there's a slow down towards the end of the prim's movement. what I *want* to happen is for the prim to travel at a constant (or accelrating) velocity, and come to a sudden stop when it reaches it's target. I've been looking through the wiki, and even trying to construct my own version with llApplyImpulse, there seems to be some kind of friction where the prim will slow down after a single push. aside from using a timer event to keep re-applying the push, is there another way I can achieve this effect?
|
Cid Jacobs
Theoretical Meteorologist
![]() Join date: 18 Jul 2004
Posts: 4,304
|
11-23-2005 23:34
Have you tried llSetForce and llSetBuoyancy ?
_____________________
|
Senuka Harbinger
A-Life, one bit at a time
![]() Join date: 24 Oct 2005
Posts: 491
|
11-24-2005 00:55
Have you tried llSetForce and llSetBuoyancy ? oh wow, thanks. I must have missed the llSetForce when trudging through the wiki. now I just need to dig up my old physics book and do all that math I swore I wouldn't touch again ![]() [edit] on a related note, is there a way to set a final/terminal velocity? or would I have to calculate out an amount of time to apply the accelerating force and call a llSetForce(<0,0,0>,TRUE); after a sleep function? |
Cid Jacobs
Theoretical Meteorologist
![]() Join date: 18 Jul 2004
Posts: 4,304
|
11-24-2005 03:24
Would I have to calculate out an amount of time to apply the accelerating force and call a llSetForce(<0,0,0>,TRUE); after a sleep function? That's probably how I would go about it. Either that or set it to non physical when at its target destination. _____________________
|