aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP
diff options
context:
space:
mode:
authorUbitUmarov2017-08-25 23:44:59 +0100
committerUbitUmarov2017-08-25 23:44:59 +0100
commit396ab1424ccefda82ff59e6ea7fc8b4fb698385b (patch)
treeef5c7f162d61e7ed13aa019d77276ac2fb36a4a0 /OpenSim/Region/ClientStack/Linden/UDP
parentchange camera view constraint. we need to do it a lot more :( (diff)
downloadopensim-SC-396ab1424ccefda82ff59e6ea7fc8b4fb698385b.zip
opensim-SC-396ab1424ccefda82ff59e6ea7fc8b4fb698385b.tar.gz
opensim-SC-396ab1424ccefda82ff59e6ea7fc8b4fb698385b.tar.bz2
opensim-SC-396ab1424ccefda82ff59e6ea7fc8b4fb698385b.tar.xz
in some cases ll TPVs can only see avatar rotations around Z or camera misbehaves
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs13
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);