<br>* Every avatar in the Scene is represented by a ScenePresence<br>* The Scene contains Objects and Avatars and Parcels and terrain and all that good stuff<br>* The ScenePresence requires you to pump messages to it for it to do normal movement.<br>
<br>* When you use the Move To Position option, you don't actually need to do much calculation, you just create the object with a compatible body rotation.   The rest is just filler and you feed that to the ScenePresence.   I was using the frame event count mod 5 to pump a message every 5 frames.   It isn't so much the message data as much as the action of sending the message using  HandleAgentUpdate.    The code in the HandleAgentUpdate method actually implements getting you from point A to point B.   It assumes the avatar's known rotation is sent in the BodyRotation member and if the BodyRotation isn't reasonable, it might send you off in another direction to try and correct your course.<br>
<br>Alternatively, you could create a full AgentUpdateArgs and not use the Move to Position functionality.    You'd do that the same way except you wouldn't call the respective Move To Position method and you'd create a feedback controller that fed the proper movement flags to the ScenePresence.<br>
<br>Teravus<br><br><br><div class="gmail_quote">On Thu, Oct 28, 2010 at 2:02 PM, bodzette Coignet <span dir="ltr"><<a href="mailto:bodzettecoignet@gmail.com">bodzettecoignet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks again Teravus.<br><br>Anybody who understands how avatars move willing to take a stab at sense-checking my vague understanding?<br><br>Here's what I think happens when an avatar moves based on the code Teravus produced and my somewhat vague understanding of scenes and regions:<br>

<br>* There is a scene object where all the avatars who are active in a
region live.<br><br> * Each of the avatars is associated with a scenepresence
which is basically your particular avatar's view of the scene. <br><br>* What you
need to do to move an avatar is update some part of your scenepresence and the
corresponding scene will ripple through to all the other
scenepresences of the other avatars that have you in their field of
vision. <br><br>* So using the rotation of the av, the current position and the destination position of the av what I need to do is generate the avatar movement arguments (which I should
be able to do by looking at how it's done for a real avatar and Teravus's code) and create an update of the screnepresence object for each step the avatar takes
until the movement is completed.<br><br><br>
<br>
<br>_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br>
<br></blockquote></div><br>