Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

smooth movement?

Eep Quirk
Absolutely Relative
Join date: 15 Dec 2004
Posts: 1,211
01-06-2005 11:59
I can't seem to find a script (or function) to move a prim smoothly like targetomega does. Any ideas? I don't want "step movement" like setpos seems to do--even putting lots of steps still causes pauses.

I also want to be able to have smooth rotation and smooth scaling simultaneously with smooth movement. Is this possible?
Damien Took
Meat Popsicle
Join date: 3 Dec 2004
Posts: 151
01-06-2005 12:20
I have done some testing for smooth movement and I have found that llMoveToTarget function will move to any position smoothly over an amount of time (in seconds). Set a target and add a reasonable amount of time and it will move smoothly to that target. As for scaling and rotation, if you put the llSetRot or llSetScale in a for next loop with a very short pause in between each increment you should get smooth results. Or instead of a pause you can use very small increments to get to the end rotation or scale and the speed of the loop itself will smooth out the movement. What have you tried so far?
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
01-06-2005 17:11
I believe llMoveToTarget() only works with physical objects. This is a problem if you want to smoothly open a sliding door, for instance. I don't think there's a solution to smooth motion with non-physical objects aside from looping steps.
Nexus Nash
Undercover Linden
Join date: 18 Dec 2002
Posts: 1,084
01-06-2005 18:47
the _only_ way I have found out how to do this without crazzy loops (<0.01 secs) and uber causing lag. Is use vehicle linear or rotation engines!
_____________________
Shorahmin Femto
Senior Citizen
Join date: 27 Feb 2004
Posts: 34
01-12-2005 08:55
One reason llTargetOmega gives smooth(er) movement is that it is a client-side function. The WIKI says that llSetTextureAnim is another. Does anyone know the full list of client-side functions?
_____________________
Time is granular, Object Oriented, re-entrant, recursive, and therefore manifold.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
01-12-2005 11:32
Message me in Second Life concerning this, Eep, and I'll be more than happy to teach you how to do it with llRotLookAt, llMoveToTarget, and even a combination of llTargetOmega/llSetRot. Since it would not be polite of me to simply deposit every script I have to do this here, I'm more than happy to show you how in-world. :cool:

Alternately, if anyone else is interested, send me a message in world. They're free scripts. :)