[Opensim-users] collision detection for attachments

Justin Clark-Casey jjustincc at googlemail.com
Sat Mar 23 01:23:53 UTC 2013


Yeah, according to [1], attachments should receive collision events when the avatar capsule collides with something, 
though the attachments themselves do not collide.  Dr Ramesh, might this be good enough for your purposes?  As Dahlia 
says, doing anything more finer grained is practically impossible at this time (detected collision of an avatar foot, as 
opposed to a hand, for instance).

It's quite possible that sending avatar collision events to attachments isn't currently implemented in OpenSimulator for 
either normal users or NPCs.

[1] http://lslwiki.net/lslwiki/wakka.php?wakka=collisions

On 22/03/13 19:55, Dahlia Trimble wrote:
> On the simulator, an avatar collision shape is a "capsule", sort of like a vertical cylinder with a hemisphere on each
> end. The avatar mesh, skeleton, and attachments do not collide on the simulator and as such no events exist which could
> trigger a script event. I thought the avatar capsule could generate collision events but perhaps this is not the case or
> it is not implemented in OpenSimulator.
>
> Given the current animation system, collisions with attachments and avatar meshes would be difficult to implement as
> they would need to be detected on the viewer, however, animations are poorly synchronized between viewers and there is a
> lack of position accuracy for avatar motion. Sending such events to the server and making use of them in scripts would
> be a difficult task. It's probably possible that the avatar character animation could be simulated on the server but
> that would be a fairly large level of complexity to add to the simulator and given the synchronization issues with
> animations, probably would give very inconsistent results compared to what users would see on their viewers.
>
> On Fri, Mar 22, 2013 at 11:49 AM, Dr Ramesh Ramloll <r.ramloll at gmail.com <mailto:r.ramloll at gmail.com>> wrote:
>
>     Hello,
>     I am wondering if this is by design ... I have a  script to detect collision in an attachment in order to start a
>     specific animation for an NPC, but it appears that collision is not detected when the script is running in the
>     attachment.
>     Let me know if this is to be expected. How would you script an NPC that would react diffectly if for e.g. its foot
>     hits something, or some other body part hits .... Just an attempt to make an NPC that reacts a little more
>     interestingly when colliding with obstacles.
>     Thanks
>     R
>
>     --
>     '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>
>
>     _______________________________________________
>     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
>
>
>
>
> _______________________________________________
> 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