diff options
author | UbitUmarov | 2015-09-24 06:32:40 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-24 06:32:40 +0100 |
commit | 5ca610d56a992f1de85dc1be7c074e7c62678b02 (patch) | |
tree | 663a7c6c8d0c3ab14c97a008d01d8ae0757c1db9 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | change console main help to match master (diff) | |
download | opensim-SC-5ca610d56a992f1de85dc1be7c074e7c62678b02.zip opensim-SC-5ca610d56a992f1de85dc1be7c074e7c62678b02.tar.gz opensim-SC-5ca610d56a992f1de85dc1be7c074e7c62678b02.tar.bz2 opensim-SC-5ca610d56a992f1de85dc1be7c074e7c62678b02.tar.xz |
bug fix, let ubODE see more than one mesh on cast ray
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index de4fce3..8d40a38 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -869,19 +869,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
869 | 869 | ||
870 | // Utility function for llRot2Euler | 870 | // Utility function for llRot2Euler |
871 | 871 | ||
872 | // normalize an angle between -PI and PI (-180 to +180 degrees) | ||
873 | protected double NormalizeAngle(double angle) | ||
874 | { | ||
875 | if (angle > -Math.PI && angle < Math.PI) | ||
876 | return angle; | ||
877 | |||
878 | int numPis = (int)(Math.PI / angle); | ||
879 | double remainder = angle - Math.PI * numPis; | ||
880 | if (numPis % 2 == 1) | ||
881 | return Math.PI - angle; | ||
882 | return remainder; | ||
883 | } | ||
884 | |||
885 | public LSL_Vector llRot2Euler(LSL_Rotation q1) | 872 | public LSL_Vector llRot2Euler(LSL_Rotation q1) |
886 | { | 873 | { |
887 | m_host.AddScriptLPS(1); | 874 | m_host.AddScriptLPS(1); |
@@ -14236,7 +14223,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
14236 | if (dist == 0) | 14223 | if (dist == 0) |
14237 | return list; | 14224 | return list; |
14238 | 14225 | ||
14239 | RayFilterFlags rayfilter = RayFilterFlags.ClosestAndBackCull; | 14226 | RayFilterFlags rayfilter = RayFilterFlags.BackFaceCull; |
14240 | if (checkTerrain) | 14227 | if (checkTerrain) |
14241 | rayfilter |= RayFilterFlags.land; | 14228 | rayfilter |= RayFilterFlags.land; |
14242 | // if (checkAgents) | 14229 | // if (checkAgents) |