From 99abe885c812e42229d1e1b4fa58cd0a34edf859 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Tue, 20 Oct 2009 12:30:34 -0700 Subject: Fixing position/rotation/collisionplane in ObjectUpdate packets for avatars --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 88faccf..dce9469 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -4285,12 +4285,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP protected ObjectUpdatePacket.ObjectDataBlock CreateAvatarUpdateBlock(SendAvatarData data) { - byte[] objectData = new byte[60]; - data.Position.ToBytes(objectData, 0); - //data.Velocity.ToBytes(objectData, 12); - //data.Acceleration.ToBytes(objectData, 24); - data.Rotation.ToBytes(objectData, 36); - //data.AngularVelocity.ToBytes(objectData, 48); + byte[] objectData = new byte[76]; + + Vector4.UnitW.ToBytes(objectData, 0); // TODO: Collision plane support + data.Position.ToBytes(objectData, 16); + //data.Velocity.ToBytes(objectData, 28); + //data.Acceleration.ToBytes(objectData, 40); + data.Rotation.ToBytes(objectData, 52); + //data.AngularVelocity.ToBytes(objectData, 64); ObjectUpdatePacket.ObjectDataBlock update = new ObjectUpdatePacket.ObjectDataBlock(); -- cgit v1.1