diff options
author | Teravus Ovares | 2008-03-25 16:09:43 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-25 16:09:43 +0000 |
commit | 3d1b4f8578e4dc3df0436c1c13f1b2983d3b55e7 (patch) | |
tree | 0e6e421b696c94a8331c99782259ebce5a7b92d7 /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |
parent | * Refactored out circular reference in Region.Environment <-> Framework.Data.... (diff) | |
download | opensim-SC-3d1b4f8578e4dc3df0436c1c13f1b2983d3b55e7.zip opensim-SC-3d1b4f8578e4dc3df0436c1c13f1b2983d3b55e7.tar.gz opensim-SC-3d1b4f8578e4dc3df0436c1c13f1b2983d3b55e7.tar.bz2 opensim-SC-3d1b4f8578e4dc3df0436c1c13f1b2983d3b55e7.tar.xz |
* On Ray casting. Now returning the face normal of the collision face.
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 | } |