aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authordahlia2015-02-02 04:03:04 -0800
committerdahlia2015-02-02 04:03:04 -0800
commit39754b2dca7229ed7ff7f92918d66a58c30e5977 (patch)
treed3cd3f94cef00eeed5292a92cb4b210e803f2617 /OpenSim/Region
parentCompute rotation for llLookAt() with local positive X axis pointing down (diff)
downloadopensim-SC_OLD-39754b2dca7229ed7ff7f92918d66a58c30e5977.zip
opensim-SC_OLD-39754b2dca7229ed7ff7f92918d66a58c30e5977.tar.gz
opensim-SC_OLD-39754b2dca7229ed7ff7f92918d66a58c30e5977.tar.bz2
opensim-SC_OLD-39754b2dca7229ed7ff7f92918d66a58c30e5977.tar.xz
correct some minor comment misspellings in last commit
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index debc262..4825556 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3094,14 +3094,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3094 3094
3095 // normalized direction to target 3095 // normalized direction to target
3096 LSL_Vector dir = llVecNorm(target - from); 3096 LSL_Vector dir = llVecNorm(target - from);
3097 // use vertical to help compute left azis 3097 // use vertical to help compute left axis
3098 LSL_Vector up = new LSL_Vector(0.0, 0.0, 1.0); 3098 LSL_Vector up = new LSL_Vector(0.0, 0.0, 1.0);
3099 // find normalized left axis parallel to horizon 3099 // find normalized left axis parallel to horizon
3100 LSL_Vector left = llVecNorm(LSL_Vector.Cross(up, dir)); 3100 LSL_Vector left = llVecNorm(LSL_Vector.Cross(up, dir));
3101 // make up orthogonal to left and dir 3101 // make up orthogonal to left and dir
3102 up = LSL_Vector.Cross(dir, left); 3102 up = LSL_Vector.Cross(dir, left);
3103 3103
3104 // compute rotation based on orthogonal azes 3104 // compute rotation based on orthogonal axes
3105 LSL_Rotation rot = new LSL_Rotation(0.0, 0.707107, 0.0, 0.707107) * llAxes2Rot(dir, left, up); 3105 LSL_Rotation rot = new LSL_Rotation(0.0, 0.707107, 0.0, 0.707107) * llAxes2Rot(dir, left, up);
3106 3106
3107 // Per discussion with Melanie, for non-physical objects llLookAt appears to simply 3107 // Per discussion with Melanie, for non-physical objects llLookAt appears to simply