I think llSetKeyFramedMotion() is non-physical motion and it also uses a list of "keyframes" to define a path which is not necessarily straight and can have multiple points and turns. I believe part of the motivation behind the function was to provide a low-overhead non-physical motion system that allowed objects to move smoothly rather than in discreet steps. Using the function, a script just provides the keyframe path and then the sim does the rest; therefore the script doesn't need to consistently and periodically update the object position and rotation. I'm not certain about protocol but the function could eliminate the need for sending many update packets by specifying velocity and angular velocity in just a few packets, probably as few as one for each keyframe.<br>
<br><div class="gmail_quote">On Fri, Sep 28, 2012 at 6:36 PM, Justin Clark-Casey <span dir="ltr"><<a href="mailto:jjustincc@googlemail.com" target="_blank">jjustincc@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Looks interesting.  I'd like to take a look but unfortunately I have various other things queued right now.  However, I did leave a couple of notes on the mantis.<br>
<br>
Perhaps you could explain to me why llSetKeyFramedMotion() is better than llMoveToTarget()?  I know OpenSimulator works somewhat differently to the LL simulator (e.g. scripts do not run within time slices of the scene loop - which is what I'm guessing happens on LL) so things might be different on OpenSimulator.<div class="HOEnZb">
<div class="h5"><br>
<br>
On 27/09/12 19:25, SignpostMarv Martin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I started work on an implementation of llSetKeyframedMotion at work the other day, but ran into some issues.<br>
<br>
Would be nice if other devs could take a look and try to get it working? <a href="http://opensimulator.org/mantis/view.php?id=6112" target="_blank">http://opensimulator.org/<u></u>mantis/view.php?id=6112</a><br>
<br>
I've only tested it with ping-pong translations (it goes too far when going backwards) and rotations are untested and<br>
known to be borked.<br>
<br>
<br>
~ Marv.<br>
______________________________<u></u>_________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-dev</a><br>
<br>
</blockquote>
<br>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Justin Clark-Casey (justincc)<br>
OSVW Consulting<br>
<a href="http://justincc.org" target="_blank">http://justincc.org</a><br>
<a href="http://twitter.com/justincc" target="_blank">http://twitter.com/justincc</a></font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-dev</a><br>
</div></div></blockquote></div><br>