diff options
author | UbitUmarov | 2019-08-01 00:01:27 +0100 |
---|---|---|
committer | UbitUmarov | 2019-08-01 00:01:27 +0100 |
commit | 6359874d640229d803f6c49d2d42c6ec99331742 (patch) | |
tree | 2af50ce15f553c6416b59607c6c18d287659c07a /OpenSim/Region | |
parent | mantis8548: change more LSL arguments declarations to their formal form. Stil... (diff) | |
download | opensim-SC-6359874d640229d803f6c49d2d42c6ec99331742.zip opensim-SC-6359874d640229d803f6c49d2d42c6ec99331742.tar.gz opensim-SC-6359874d640229d803f6c49d2d42c6ec99331742.tar.bz2 opensim-SC-6359874d640229d803f6c49d2d42c6ec99331742.tar.xz |
mantis8548: let rotation division be -(olderResult) this is formally more correct (and it is the same rotation), keep not normalizing, as SL seems to do
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index dd4f974..b01dadd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -533,8 +533,12 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
533 | 533 | ||
534 | public static Quaternion operator /(Quaternion a, Quaternion b) | 534 | public static Quaternion operator /(Quaternion a, Quaternion b) |
535 | { | 535 | { |
536 | // assuming normalized | 536 | // assume normalized |
537 | b.s = -b.s; | 537 | // if not, sl seems to not normalize either |
538 | b.x = -b.x; | ||
539 | b.y = -b.y; | ||
540 | b.z = -b.z; | ||
541 | |||
538 | return a * b; | 542 | return a * b; |
539 | } | 543 | } |
540 | 544 | ||