<div dir="ltr">The approach is trivial but looks entertaining when implemented. Avoid walls thru simple collision detecting when avatars (human driven) are absent ... and use position of avatars (human driven) as guides, and break out to target when target is withing range. </div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 11:26 PM, Scott Overmyer <span dir="ltr"><<a href="mailto:sovermyer@nu.edu.kz" target="_blank">sovermyer@nu.edu.kz</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Out of curiosity, what path finding algorithm are you using to navigate to the chair?</span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best regards,</span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">scotto…</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>


<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:opensim-users-bounces@lists.berlios.de" target="_blank">opensim-users-bounces@lists.berlios.de</a> [mailto:<a href="mailto:opensim-users-bounces@lists.berlios.de" target="_blank">opensim-users-bounces@lists.berlios.de</a>] <b>On Behalf Of </b>Dr Ramesh Ramloll<br>


<b>Sent:</b> Tuesday, April 30, 2013 9:09 AM<br><b>To:</b> opensim-users<br><b>Subject:</b> [Opensim-users] osNPCSit behavior ... a comment/question</span></p><div><div class="h5"><p class="MsoNormal"> </p><div><p class="MsoNormal">

Hello,</p>
<div><p class="MsoNormal">I have this NPC that is supposed to look for a nearest chair and to sit on it. osNPCSit behaves differently based on how far the NPC is from the seat even if the OS_NPC_SIT_NOW option is used.</p>


</div><div><p class="MsoNormal">Actually I like the way the NPC walks to the chair if it is some distance away, but it only stands next to the chair unfortunately once it reaches it.</p></div><div><p class="MsoNormal">I need to launch the osNPCSit command a second time, for  the NPC tp sit down.</p>


</div><div><p class="MsoNormal">It would be cool if triggering the command only once would cause the NPC to walk to and sit on the chair.</p></div><div><p class="MsoNormal">What do others think about this? Or they may be some caveat situation that encouraged the current implementation, please share thoughts.</p>


</div><div><p class="MsoNormal">Thanks</p></div><div><p class="MsoNormal">R</p></div><div><div><p class="MsoNormal"> </p></div><p class="MsoNormal">-- <br><span style="color:#999999">'Consider how the lilies grow. They do not labor or spin.'</span><br>


<b>Rameshsharma Ramloll</b> PhD, CEO CTO DeepSemaphore LLC, Affiliate <i>Research Associate Professor</i>, Idaho State University, Pocatello, ID 83209 Tel: <a href="tel:208-240-0040" value="+12082400040" target="_blank">208-240-0040</a></p>

<div><p class="MsoNormal"><a href="http://deepsemaphore.posterous.com/" target="_blank">Blog</a>, <a href="http://www.linkedin.com/in/rameshramloll" target="_blank">LinkedIn</a>, <a href="http://www.deepsemaphore.com" target="_blank">DeepSemaphore LLC</a>, <a href="https://plus.google.com/103652369558830540272/about" target="_blank">Google+ profile</a></p>


</div></div></div></div></div></div></div>
<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></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#999999">'Consider how the lilies grow. They do not labor or spin.'</font><br>

<b>Rameshsharma Ramloll</b> PhD, CEO CTO DeepSemaphore LLC, Affiliate <i>Research Associate Professor</i>, Idaho State University, Pocatello, ID 83209 Tel: 208-240-0040<br><div><a href="http://deepsemaphore.posterous.com/" target="_blank">Blog</a>, <a href="http://www.linkedin.com/in/rameshramloll" target="_blank">LinkedIn</a>, <a href="http://www.deepsemaphore.com" target="_blank">DeepSemaphore LLC</a>, <a href="https://plus.google.com/103652369558830540272/about" target="_blank">Google+ profile</a></div>


</div>