diff options
author | UbitUmarov | 2017-08-25 23:47:40 +0100 |
---|---|---|
committer | UbitUmarov | 2017-08-25 23:47:40 +0100 |
commit | b3eec90d3cbf945e2102becd8e1e1c26f7936ece (patch) | |
tree | 9ccede89df93bf2d65b77e648a6a00f1d6375906 /OpenSim/Region/ClientStack/Linden | |
parent | Merge branch 'master' into httptests (diff) | |
parent | in some cases ll TPVs can only see avatar rotations around Z or camera misbe... (diff) | |
download | opensim-SC-b3eec90d3cbf945e2102becd8e1e1c26f7936ece.zip opensim-SC-b3eec90d3cbf945e2102becd8e1e1c26f7936ece.tar.gz opensim-SC-b3eec90d3cbf945e2102becd8e1e1c26f7936ece.tar.bz2 opensim-SC-b3eec90d3cbf945e2102becd8e1e1c26f7936ece.tar.xz |
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 6dd3885..c44c741 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -5589,6 +5589,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5589 | velocity = presence.Velocity; | 5589 | velocity = presence.Velocity; |
5590 | acceleration = Vector3.Zero; | 5590 | acceleration = Vector3.Zero; |
5591 | rotation = presence.Rotation; | 5591 | rotation = presence.Rotation; |
5592 | // tpvs can only see rotations around Z in some cases | ||
5593 | if(!presence.Flying && !presence.IsSatOnObject) | ||
5594 | { | ||
5595 | rotation.X = 0f; | ||
5596 | rotation.Y = 0f; | ||
5597 | rotation.Normalize(); | ||
5598 | } | ||
5592 | angularVelocity = presence.AngularVelocity; | 5599 | angularVelocity = presence.AngularVelocity; |
5593 | 5600 | ||
5594 | // m_log.DebugFormat( | 5601 | // m_log.DebugFormat( |
@@ -5718,6 +5725,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5718 | 5725 | ||
5719 | Vector3 velocity = new Vector3(0, 0, 0); | 5726 | Vector3 velocity = new Vector3(0, 0, 0); |
5720 | Vector3 acceleration = new Vector3(0, 0, 0); | 5727 | Vector3 acceleration = new Vector3(0, 0, 0); |
5728 | // tpvs can only see rotations around Z in some cases | ||
5729 | if(!data.Flying && !data.IsSatOnObject) | ||
5730 | { | ||
5731 | rotation.X = 0f; | ||
5732 | rotation.Y = 0f; | ||
5733 | } | ||
5721 | rotation.Normalize(); | 5734 | rotation.Normalize(); |
5722 | 5735 | ||
5723 | data.CollisionPlane.ToBytes(objectData, 0); | 5736 | data.CollisionPlane.ToBytes(objectData, 0); |