mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
mantis 8740: fix osTeleportObject set rotation
This commit is contained in:
@@ -910,11 +910,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
bool setrot = (flags & OSTPOBJ_SETROT) != 0;
|
||||
|
||||
rotation.Normalize();
|
||||
bool dorot = (Math.Abs(rotation.W) < 0.999);
|
||||
|
||||
Quaternion currentRot = RootPart.RotationOffset;
|
||||
if(dorot && setrot)
|
||||
rotation = rotation * Quaternion.Conjugate(currentRot);
|
||||
|
||||
if(setrot)
|
||||
rotation = Quaternion.Conjugate(currentRot) * rotation;
|
||||
|
||||
bool dorot = setrot | (Math.Abs(rotation.W) < 0.999);
|
||||
|
||||
if(stop)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user