<div dir="ltr">Physics unfortunately does not work as well as we hoped regarding collision detection ... so trying to find work arounds. For e.g. if a projectile is moving beyond a certain speed, the physics frame delay may be too large and collsions are missed. So far we seem to have had better results with sensors (only time and further testing will tell)</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 4:06 PM, Mic Bowman <span dir="ltr"><<a href="mailto:cmickeyb@gmail.com" target="_blank">cmickeyb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Depending on your requirements... you can use llVolumeDetect() & check for collisions. That uses the physics acceleration structures. <span class="HOEnZb"><font color="#888888"><div><br></div><div>--mic</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 12:49 PM, 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"><div dir="ltr">Thanks Dahlia, you provided us with a good tip here ... "<span style="font-family:arial,sans-serif;font-size:12.8000001907349px">Keep in mind that specifying a scan with a key or using llGetObjectDetails with a known key is likely far more efficient than doing arbitrary scans."</span><div><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">Thank YOU</span></div><span><font color="#888888"><div><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">Ramesh</span></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 3:46 PM, Dahlia Trimble <span dir="ltr"><<a href="mailto:dahliatrimble@gmail.com" target="_blank">dahliatrimble@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Sensors are fairly expensive and inefficient as unless you specify a scan with a given key, they must do a linear search of all of the specified entity types in the scene (region). In other words, if you ask for avatars in an area, it must test all avatars in the region, or if you ask for objects it must test all of the objects. These searches also require exclusive access to the region entities, so only one can happen at a time and anything else that needs access must wait (physics, avatar movement, etc.). Therefore adding many sensors doing frequent scans will eventually degrade sim performance and could have a cascading effect. I'm not aware of any numeric limit; it would depend on how many objects and avatars are in the region and how powerful the machine is the sim is running on and how busy it is doing other things. I'd think testing this would be difficult as you may run into a situation where it appears to work fine when you are building/testing but then performs poorly or even fails when there are many avatars in the region. Lacking any known limit but with these concepts in mind, I guess you'll just have to try adding as many as you need and see when something breaks. Keep in mind that specifying a scan with a key or using llGetObjectDetails with a known key is likely far more efficient than doing arbitrary scans.<br><br></div>Unfortunately OpenSimulator currently lacks any means of doing efficient spatial queries. This is something I've brought up in development meetings a few times but the idea has never really caught on.<br><br></div>Good luck with your project :)<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Oct 16, 2014 at 11:21 AM, Dr Ramesh Ramloll <span dir="ltr"><<a href="mailto:r.ramloll@gmail.com" target="_blank">r.ramloll@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello there,<div>Is there some information about any limit on the number of sensors that an opensim region can support by default?</div><div>We are planning to use many sensors at one time, some even attached to vehicles and projectiles, are there anything we should be especially careful about regarding their use in this manner?<br clear="all"><div>Thanks</div><span><font color="#888888"><div>Ramesh</div>-- <br><div dir="ltr"><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://www.linkedin.com/in/rameshramloll" target="_blank">LinkedIn</a>, <a href="http://www.deepsemaphore.com" target="_blank">DeepSemaphore LLC</a>, <a href="http://www.rezmela.com" target="_blank">RezMela</a>, <a href="https://plus.google.com/103652369558830540272/about" target="_blank">Google+ profile</a></div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@opensimulator.org" target="_blank">Opensim-users@opensimulator.org</a><br>
<a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@opensimulator.org" target="_blank">Opensim-users@opensimulator.org</a><br>
<a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><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://www.linkedin.com/in/rameshramloll" target="_blank">LinkedIn</a>, <a href="http://www.deepsemaphore.com" target="_blank">DeepSemaphore LLC</a>, <a href="http://www.rezmela.com" target="_blank">RezMela</a>, <a href="https://plus.google.com/103652369558830540272/about" target="_blank">Google+ profile</a></div></div>
</div>
</div></div><br>_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@opensimulator.org" target="_blank">Opensim-users@opensimulator.org</a><br>
<a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@opensimulator.org">Opensim-users@opensimulator.org</a><br>
<a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><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://www.linkedin.com/in/rameshramloll" target="_blank">LinkedIn</a>, <a href="http://www.deepsemaphore.com" target="_blank">DeepSemaphore LLC</a>, <a href="http://www.rezmela.com" target="_blank">RezMela</a>, <a href="https://plus.google.com/103652369558830540272/about" target="_blank">Google+ profile</a></div></div>
</div>