diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 2c65a8f..acb2588 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -953,7 +953,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
953 | 953 | ||
954 | // Normal is calculated by the difference and then normalizing the result | 954 | // Normal is calculated by the difference and then normalizing the result |
955 | Vector3 normalpart = ipoint - vAbsolutePosition; | 955 | Vector3 normalpart = ipoint - vAbsolutePosition; |
956 | returnresult.normal = normalpart.Normalize(); | 956 | returnresult.normal = normalpart / normalpart.Length; |
957 | 957 | ||
958 | // It's funny how the LLVector3 object has a Distance function, but the Axiom.Math object doesnt. | 958 | // It's funny how the LLVector3 object has a Distance function, but the Axiom.Math object doesnt. |
959 | // I can write a function to do it.. but I like the fact that this one is Static. | 959 | // I can write a function to do it.. but I like the fact that this one is Static. |
@@ -1261,7 +1261,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1261 | returnresult.HitTF = true; | 1261 | returnresult.HitTF = true; |
1262 | returnresult.ipoint = q; | 1262 | returnresult.ipoint = q; |
1263 | //m_log.Info("[POINT]: " + q.ToString()); | 1263 | //m_log.Info("[POINT]: " + q.ToString()); |
1264 | returnresult.normal = 1; | 1264 | returnresult.normal = normals[i]; |
1265 | 1265 | ||
1266 | } | 1266 | } |
1267 | } | 1267 | } |