diff options
author | Teravus Ovares | 2008-03-25 17:31:40 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-25 17:31:40 +0000 |
commit | e74892ee44df1bffc084efca0c3565b3153d80e0 (patch) | |
tree | b68017644e462183cacd6fbb47f118694ec7cc67 | |
parent | * Use Face normal to offset new prim instead of the hard coded pos.Z += 0.25f... (diff) | |
download | opensim-SC-e74892ee44df1bffc084efca0c3565b3153d80e0.zip opensim-SC-e74892ee44df1bffc084efca0c3565b3153d80e0.tar.gz opensim-SC-e74892ee44df1bffc084efca0c3565b3153d80e0.tar.bz2 opensim-SC-e74892ee44df1bffc084efca0c3565b3153d80e0.tar.xz |
* Use Face normal to offset new prim instead of the hard coded pos.Z += 0.25f; This allows proper positioning of prim based on the face you click. ( Yes, you can click the bottom face of a prim that's above you, and the new prim appears directly below it. )
( Remove ray caster Verbosity )
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index c74092a..951e467 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -1087,7 +1087,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1087 | EntityIntersection ei = target.TestIntersectionOBB(NewRay, new Quaternion(1,0,0,0)); | 1087 | EntityIntersection ei = target.TestIntersectionOBB(NewRay, new Quaternion(1,0,0,0)); |
1088 | 1088 | ||
1089 | // Un-comment out the following line to Get Raytrace results printed to the console. | 1089 | // Un-comment out the following line to Get Raytrace results printed to the console. |
1090 | m_log.Info("[RAYTRACERESULTS]: Hit:" + ei.HitTF.ToString() + " Point: " + ei.ipoint.ToString() + " Normal: " + ei.normal.ToString()); | 1090 | // m_log.Info("[RAYTRACERESULTS]: Hit:" + ei.HitTF.ToString() + " Point: " + ei.ipoint.ToString() + " Normal: " + ei.normal.ToString()); |
1091 | 1091 | ||
1092 | // If we hit something | 1092 | // If we hit something |
1093 | if (ei.HitTF) | 1093 | if (ei.HitTF) |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 2a2c1a0..bc31e72 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -1260,7 +1260,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1260 | returnresult.distance = distance2; | 1260 | returnresult.distance = distance2; |
1261 | returnresult.HitTF = true; | 1261 | returnresult.HitTF = true; |
1262 | returnresult.ipoint = q; | 1262 | returnresult.ipoint = q; |
1263 | m_log.Info("[FACE]:" + i.ToString()); | 1263 | //m_log.Info("[FACE]:" + i.ToString()); |
1264 | //m_log.Info("[POINT]: " + q.ToString()); | 1264 | //m_log.Info("[POINT]: " + q.ToString()); |
1265 | returnresult.normal = normals[i]; | 1265 | returnresult.normal = normals[i]; |
1266 | 1266 | ||