diff options
author | dahlia | 2015-02-02 04:03:04 -0800 |
---|---|---|
committer | dahlia | 2015-02-02 04:03:04 -0800 |
commit | 39754b2dca7229ed7ff7f92918d66a58c30e5977 (patch) | |
tree | d3cd3f94cef00eeed5292a92cb4b210e803f2617 /OpenSim/Region | |
parent | Compute rotation for llLookAt() with local positive X axis pointing down (diff) | |
download | opensim-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.cs | 4 |
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 |