|
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
|
02-13-2007 04:59
Hi,
I want to move a prim or object over a short distance (e.g. 0.5 meter) in about 5 seconds, and then back in about 3 seconds.
Moving via llSetPos or llSetPrimitiveParams is too quick. I tried sending 20 new positions in one llSetPrimitiveParams but it's executed as 1 change. If I loop it and send 20 separate positions in 20 llSetPrimitiveParams or llSetPos calls, it's not smooth since every call delays the script by .2 seconds.
Is this something that cannot be done without the jerkyness of the .2 sec. delay, or am I overlooking something obvious?
Lyn
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
02-13-2007 05:13
From: Lyn Mimistrobell Hi,
I want to move a prim or object over a short distance (e.g. 0.5 meter) in about 5 seconds, and then back in about 3 seconds.
Moving via llSetPos or llSetPrimitiveParams is too quick. I tried sending 20 new positions in one llSetPrimitiveParams but it's executed as 1 change. If I loop it and send 20 separate positions in 20 llSetPrimitiveParams or llSetPos calls, it's not smooth since every call delays the script by .2 seconds.
Is this something that cannot be done without the jerkyness of the .2 sec. delay, or am I overlooking something obvious?
Lyn Try using llMoveToTarget(vector target, float tau)
|
|
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
|
02-16-2007 12:35
I have looked at llMoveToTarget but it requires my object to be physical and unfortunately since my object isn't perfectly balanced that kinda fails  Is there any other way to move a non-physical object smoothly? Lyn
|
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
02-16-2007 13:01
If you go to this link, there is code posted showing how to overcome the .2 second llSetPos issue, using multiple scripts. You may be able to adapt this technique to your purpose. /54/65/85562/1.html
|