diff options
author | UbitUmarov | 2012-06-13 05:16:18 +0100 |
---|---|---|
committer | UbitUmarov | 2012-06-13 05:16:18 +0100 |
commit | aac80550e0859d1cddd6701a1fcb89ee6d1a6ac5 (patch) | |
tree | f5e62840d43dad480d6a54d6ca5b96a5506e71af /OpenSim/Region | |
parent | Changed t adding the avatar dependent sit offset and not subtracting, so not... (diff) | |
parent | Add detecting non-physical phantoms back into raycast (diff) | |
download | opensim-SC-aac80550e0859d1cddd6701a1fcb89ee6d1a6ac5.zip opensim-SC-aac80550e0859d1cddd6701a1fcb89ee6d1a6ac5.tar.gz opensim-SC-aac80550e0859d1cddd6701a1fcb89ee6d1a6ac5.tar.bz2 opensim-SC-aac80550e0859d1cddd6701a1fcb89ee6d1a6ac5.tar.xz |
Merge branch 'avination' into ubitwork
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 |
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 | { |