diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | 2 |
2 files changed, 4 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 05adf8e..75add29 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -12416,9 +12416,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
12416 | 12416 | ||
12417 | ContactResult result = new ContactResult (); | 12417 | ContactResult result = new ContactResult (); |
12418 | result.ConsumerID = group.LocalId; | 12418 | result.ConsumerID = group.LocalId; |
12419 | result.Depth = intersection.distance; | 12419 | // result.Depth = intersection.distance; |
12420 | result.Normal = intersection.normal; | 12420 | result.Normal = intersection.normal; |
12421 | result.Pos = intersection.ipoint; | 12421 | result.Pos = intersection.ipoint; |
12422 | result.Depth = Vector3.Mag(rayStart - result.Pos); | ||
12422 | 12423 | ||
12423 | contacts.Add(result); | 12424 | contacts.Add(result); |
12424 | }); | 12425 | }); |
@@ -12613,7 +12614,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
12613 | bool checkPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_PHYSICAL) == ScriptBaseClass.RC_REJECT_PHYSICAL); | 12614 | bool checkPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_PHYSICAL) == ScriptBaseClass.RC_REJECT_PHYSICAL); |
12614 | 12615 | ||
12615 | 12616 | ||
12616 | if (World.SuportsRayCastFiltered()) | 12617 | if (false)// World.SuportsRayCastFiltered()) |
12617 | { | 12618 | { |
12618 | if (dist == 0) | 12619 | if (dist == 0) |
12619 | return list; | 12620 | return list; |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs index 278f74e..ad4f70c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | |||
@@ -667,7 +667,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
667 | 667 | ||
668 | public static readonly LSLInteger RCERR_UNKNOWN = -1; | 668 | public static readonly LSLInteger RCERR_UNKNOWN = -1; |
669 | public static readonly LSLInteger RCERR_SIM_PERF_LOW = -2; | 669 | public static readonly LSLInteger RCERR_SIM_PERF_LOW = -2; |
670 | public static readonly LSLInteger RCERR_CAST_TIME_EXCEEDED = 3; | 670 | public static readonly LSLInteger RCERR_CAST_TIME_EXCEEDED = -3; |
671 | 671 | ||
672 | public const int KFM_MODE = 1; | 672 | public const int KFM_MODE = 1; |
673 | public const int KFM_LOOP = 1; | 673 | public const int KFM_LOOP = 1; |