diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-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(); |