aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorUbitUmarov2012-06-13 05:16:18 +0100
committerUbitUmarov2012-06-13 05:16:18 +0100
commitaac80550e0859d1cddd6701a1fcb89ee6d1a6ac5 (patch)
treef5e62840d43dad480d6a54d6ca5b96a5506e71af /OpenSim/Region/ScriptEngine
parent Changed t adding the avatar dependent sit offset and not subtracting, so not... (diff)
parentAdd detecting non-physical phantoms back into raycast (diff)
downloadopensim-SC_OLD-aac80550e0859d1cddd6701a1fcb89ee6d1a6ac5.zip
opensim-SC_OLD-aac80550e0859d1cddd6701a1fcb89ee6d1a6ac5.tar.gz
opensim-SC_OLD-aac80550e0859d1cddd6701a1fcb89ee6d1a6ac5.tar.bz2
opensim-SC_OLD-aac80550e0859d1cddd6701a1fcb89ee6d1a6ac5.tar.xz
Merge branch 'avination' into ubitwork
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs14
1 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index fafeba2..959d928 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -12625,9 +12625,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
12625 results.Add(r); 12625 results.Add(r);
12626 } 12626 }
12627 12627
12628 // bug: will not detect phantom unless they are physical 12628 // TODO: Replace this with a better solution. ObjectIntersection can only
12629 // don't use ObjectIntersection because its also bad 12629 // detect nonphysical phantoms. They are detected by virtue of being
12630 12630 // nonphysical (e.g. no PhysActor) so will not conflict with detecting
12631 // physicsl phantoms as done by the physics scene
12632 // We don't want anything else but phantoms here.
12633 if (detectPhantom)
12634 {
12635 ContactResult[] objectHits = ObjectIntersection(rayStart, rayEnd, false, false, true);
12636 foreach (ContactResult r in objectHits)
12637 results.Add(r);
12638 }
12631 } 12639 }
12632 else 12640 else
12633 { 12641 {