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.<br>
<br>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.<br>
<br><div class="gmail_quote">On Fri, Mar 22, 2013 at 11:49 AM, Dr Ramesh Ramloll <span dir="ltr"><<a href="mailto:r.ramloll@gmail.com" target="_blank">r.ramloll@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<div>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.</div>
<div>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.</div>
<div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>R</div><div><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: <a href="tel:208-240-0040" value="+12082400040" target="_blank">208-240-0040</a><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>
</font></span><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>