diff options
author | UbitUmarov | 2014-08-23 21:13:30 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-23 21:13:30 +0100 |
commit | d55041d9349c6d846fc32c01ea28083f40fd4263 (patch) | |
tree | 5f8c3cae21fcfc3cbf8744e15f7d3bdd1c7925f9 /OpenSim/Region/ClientStack/Linden/UDP | |
parent | Remove entities from updates queues on kill. Do it sync so enqueues after (diff) | |
download | opensim-SC_OLD-d55041d9349c6d846fc32c01ea28083f40fd4263.zip opensim-SC_OLD-d55041d9349c6d846fc32c01ea28083f40fd4263.tar.gz opensim-SC_OLD-d55041d9349c6d846fc32c01ea28083f40fd4263.tar.bz2 opensim-SC_OLD-d55041d9349c6d846fc32c01ea28083f40fd4263.tar.xz |
on updates, send rotations using livomv Quaternion.toBytes() again
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 3d02f36..e62bea6 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -5334,13 +5334,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5334 | Vector3 velocity = new Vector3(0, 0, 0); | 5334 | Vector3 velocity = new Vector3(0, 0, 0); |
5335 | Vector3 acceleration = new Vector3(0, 0, 0); | 5335 | Vector3 acceleration = new Vector3(0, 0, 0); |
5336 | rotation.Normalize(); | 5336 | rotation.Normalize(); |
5337 | Vector3 vrot = new Vector3(rotation.X, rotation.Y, rotation.Z); | ||
5338 | 5337 | ||
5339 | data.CollisionPlane.ToBytes(objectData, 0); | 5338 | data.CollisionPlane.ToBytes(objectData, 0); |
5340 | offsetPosition.ToBytes(objectData, 16); | 5339 | offsetPosition.ToBytes(objectData, 16); |
5341 | velocity.ToBytes(objectData, 28); | 5340 | velocity.ToBytes(objectData, 28); |
5342 | acceleration.ToBytes(objectData, 40); | 5341 | acceleration.ToBytes(objectData, 40); |
5343 | vrot.ToBytes(objectData, 52); | 5342 | rotation.ToBytes(objectData, 52); |
5344 | data.AngularVelocity.ToBytes(objectData, 64); | 5343 | data.AngularVelocity.ToBytes(objectData, 64); |
5345 | 5344 | ||
5346 | ObjectUpdatePacket.ObjectDataBlock update = new ObjectUpdatePacket.ObjectDataBlock(); | 5345 | ObjectUpdatePacket.ObjectDataBlock update = new ObjectUpdatePacket.ObjectDataBlock(); |
@@ -5400,8 +5399,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5400 | 5399 | ||
5401 | Quaternion rotation = data.RotationOffset; | 5400 | Quaternion rotation = data.RotationOffset; |
5402 | rotation.Normalize(); | 5401 | rotation.Normalize(); |
5403 | Vector3 vrot = new Vector3(rotation.X, rotation.Y, rotation.Z); | 5402 | rotation.ToBytes(objectData, 36); |
5404 | vrot.ToBytes(objectData, 36); | ||
5405 | data.AngularVelocity.ToBytes(objectData, 48); | 5403 | data.AngularVelocity.ToBytes(objectData, 48); |
5406 | 5404 | ||
5407 | ObjectUpdatePacket.ObjectDataBlock update = new ObjectUpdatePacket.ObjectDataBlock(); | 5405 | ObjectUpdatePacket.ObjectDataBlock update = new ObjectUpdatePacket.ObjectDataBlock(); |