aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);