mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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
This commit is contained in:
@@ -533,8 +533,12 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
|
||||
public static Quaternion operator /(Quaternion a, Quaternion b)
|
||||
{
|
||||
// assuming normalized
|
||||
b.s = -b.s;
|
||||
// assume normalized
|
||||
// if not, sl seems to not normalize either
|
||||
b.x = -b.x;
|
||||
b.y = -b.y;
|
||||
b.z = -b.z;
|
||||
|
||||
return a * b;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user