aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
diff options
context:
space:
mode:
authorUbitUmarov2019-01-10 18:52:08 +0000
committerUbitUmarov2019-01-10 18:52:08 +0000
commita1182cddd51cf4ac0e2e231b02072b074250a3ae (patch)
tree78c25da3daabe99b3a73c568ff5fad52af630ff2 /OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
parentfile that depends on libomv changes (diff)
downloadopensim-SC-a1182cddd51cf4ac0e2e231b02072b074250a3ae.zip
opensim-SC-a1182cddd51cf4ac0e2e231b02072b074250a3ae.tar.gz
opensim-SC-a1182cddd51cf4ac0e2e231b02072b074250a3ae.tar.bz2
opensim-SC-a1182cddd51cf4ac0e2e231b02072b074250a3ae.tar.xz
minor direct use of libomv changes
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs26
1 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 9a022e6..b61bdeb 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -5701,27 +5701,27 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5701 5701
5702 // Velocity 5702 // Velocity
5703 ClampVectorForUint(ref velocity, 128f); 5703 ClampVectorForUint(ref velocity, 128f);
5704 Utils.UInt16ToBytes(Utils.FloatToUInt16(velocity.X, -128.0f, 128.0f), data, pos); pos += 2; 5704 Utils.FloatToUInt16Bytes(velocity.X, 128.0f, data, pos); pos += 2;
5705 Utils.UInt16ToBytes(Utils.FloatToUInt16(velocity.Y, -128.0f, 128.0f), data, pos); pos += 2; 5705 Utils.FloatToUInt16Bytes(velocity.Y, 128.0f, data, pos); pos += 2;
5706 Utils.UInt16ToBytes(Utils.FloatToUInt16(velocity.Z, -128.0f, 128.0f), data, pos); pos += 2; 5706 Utils.FloatToUInt16Bytes(velocity.Z, 128.0f, data, pos); pos += 2;
5707 5707
5708 // Acceleration 5708 // Acceleration
5709 ClampVectorForUint(ref acceleration, 64f); 5709 ClampVectorForUint(ref acceleration, 64f);
5710 Utils.UInt16ToBytes(Utils.FloatToUInt16(acceleration.X, -64.0f, 64.0f), data, pos); pos += 2; 5710 Utils.FloatToUInt16Bytes(acceleration.X, 64.0f, data, pos); pos += 2;
5711 Utils.UInt16ToBytes(Utils.FloatToUInt16(acceleration.Y, -64.0f, 64.0f), data, pos); pos += 2; 5711 Utils.FloatToUInt16Bytes(acceleration.Y, 64.0f, data, pos); pos += 2;
5712 Utils.UInt16ToBytes(Utils.FloatToUInt16(acceleration.Z, -64.0f, 64.0f), data, pos); pos += 2; 5712 Utils.FloatToUInt16Bytes(acceleration.Z, 64.0f, data, pos); pos += 2;
5713 5713
5714 // Rotation 5714 // Rotation
5715 Utils.UInt16ToBytes(Utils.FloatToUInt16(rotation.X, -1.0f, 1.0f), data, pos); pos += 2; 5715 Utils.FloatToUInt16Bytes(rotation.X, 1.0f, data, pos); pos += 2;
5716 Utils.UInt16ToBytes(Utils.FloatToUInt16(rotation.Y, -1.0f, 1.0f), data, pos); pos += 2; 5716 Utils.FloatToUInt16Bytes(rotation.Y, 1.0f, data, pos); pos += 2;
5717 Utils.UInt16ToBytes(Utils.FloatToUInt16(rotation.Z, -1.0f, 1.0f), data, pos); pos += 2; 5717 Utils.FloatToUInt16Bytes(rotation.Z, 1.0f, data, pos); pos += 2;
5718 Utils.UInt16ToBytes(Utils.FloatToUInt16(rotation.W, -1.0f, 1.0f), data, pos); pos += 2; 5718 Utils.FloatToUInt16Bytes(rotation.W, 1.0f, data, pos); pos += 2;
5719 5719
5720 // Angular Velocity 5720 // Angular Velocity
5721 ClampVectorForUint(ref angularVelocity, 64f); 5721 ClampVectorForUint(ref angularVelocity, 64f);
5722 Utils.UInt16ToBytes(Utils.FloatToUInt16(angularVelocity.X, -64.0f, 64.0f), data, pos); pos += 2; 5722 Utils.FloatToUInt16Bytes(angularVelocity.X, 64.0f, data, pos); pos += 2;
5723 Utils.UInt16ToBytes(Utils.FloatToUInt16(angularVelocity.Y, -64.0f, 64.0f), data, pos); pos += 2; 5723 Utils.FloatToUInt16Bytes(angularVelocity.Y, 64.0f, data, pos); pos += 2;
5724 Utils.UInt16ToBytes(Utils.FloatToUInt16(angularVelocity.Z, -64.0f, 64.0f), data, pos); pos += 2; 5724 Utils.FloatToUInt16Bytes(angularVelocity.Z, 64.0f, data, pos); pos += 2;
5725 5725
5726 ImprovedTerseObjectUpdatePacket.ObjectDataBlock block 5726 ImprovedTerseObjectUpdatePacket.ObjectDataBlock block
5727 = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock(); 5727 = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock();