[Opensim-users] osNPCSit behavior ... a comment/question

Justin Clark-Casey jjustincc at googlemail.com
Fri May 3 22:07:13 UTC 2013


I tested this and the NPC code does what I would expect.  If the prim is <= 10 meters without a sit target then sit is 
immediate.  If the prim is >10m away and has no sit target then nothing happens.  This mimics behaviour for an avatar, 
though I think there is a good argument that it should be ignored for NPCs (sit should be possible from any location).

I suspect the behaviour you're seeing is from an older version of OpenSimulator (probably pre 0.7.5) where the same 
thing would be attempted for ordinary sit attempts by users.

On 01/05/13 14:27, Dr Ramesh Ramloll wrote:
> Hello,
> Setting llSitTarget does make the NPC to behave as I initially expected ... it sits on prim immediately. Now I miss the
> walk to the seat ... guess could be fixed easily by triggering only after it is a minimum distance away from target.
>
>
> On Wed, May 1, 2013 at 7:44 AM, Dr Ramesh Ramloll <r.ramloll at gmail.com <mailto:r.ramloll at gmail.com>> wrote:
>
>     I haven't used llSitTarget on chairs .. I was testing with prims, may be I should try that.
>     Yes graph traversal is a great approach. I was trying to find a way where NPCs learn from avatar navigation and use
>     common navigation avatar 'sentier battus' as paths, as guides to use another term
>
>
>     On Wed, May 1, 2013 at 6:32 AM, Jeff Kelley <opensim at pescadoo.net <mailto:opensim at pescadoo.net>> wrote:
>
>         At 8:24 AM -0400 4/30/13, Dr Ramesh Ramloll wrote:
>
>             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.
>
>
>         Although NPCs can drift on convex obstacles, the are trapped inside a concave one. I use waypoints prims and a
>         graph of connected nodes. Pathfinding becomes a graph walk, which is a well known problem.
>
>
>         Did you SitTarget your chairs?
>
>
>         -- Jeff
>
>         _________________________________________________
>         Opensim-users mailing list
>         Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>         https://lists.berlios.de/__mailman/listinfo/opensim-users <https://lists.berlios.de/mailman/listinfo/opensim-users>
>
>
>
>
>     --
>     'Consider how the lilies grow. They do not labor or spin.'
>     *Rameshsharma Ramloll* PhD, CEO CTO DeepSemaphore LLC, Affiliate /Research Associate Professor/, Idaho State
>     University, Pocatello, ID 83209 Tel: 208-240-0040 <tel:208-240-0040>
>     Blog <http://deepsemaphore.posterous.com/>, LinkedIn <http://www.linkedin.com/in/rameshramloll>, DeepSemaphore LLC
>     <http://www.deepsemaphore.com>, Google+ profile <https://plus.google.com/103652369558830540272/about>
>
>
>
>
> --
> 'Consider how the lilies grow. They do not labor or spin.'
> *Rameshsharma Ramloll* PhD, CEO CTO DeepSemaphore LLC, Affiliate /Research Associate Professor/, Idaho State University,
> Pocatello, ID 83209 Tel: 208-240-0040
> Blog <http://deepsemaphore.posterous.com/>, LinkedIn <http://www.linkedin.com/in/rameshramloll>, DeepSemaphore LLC
> <http://www.deepsemaphore.com>, Google+ profile <https://plus.google.com/103652369558830540272/about>
>
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>


-- 
Justin Clark-Casey (justincc)
OSVW Consulting
http://justincc.org
http://twitter.com/justincc



More information about the Opensim-users mailing list