Fixing position/rotation/collisionplane in ObjectUpdate packets for avatars
parent
edd393ff30
commit
99abe885c8
|
@ -4285,12 +4285,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
protected ObjectUpdatePacket.ObjectDataBlock CreateAvatarUpdateBlock(SendAvatarData data)
|
protected ObjectUpdatePacket.ObjectDataBlock CreateAvatarUpdateBlock(SendAvatarData data)
|
||||||
{
|
{
|
||||||
byte[] objectData = new byte[60];
|
byte[] objectData = new byte[76];
|
||||||
data.Position.ToBytes(objectData, 0);
|
|
||||||
//data.Velocity.ToBytes(objectData, 12);
|
Vector4.UnitW.ToBytes(objectData, 0); // TODO: Collision plane support
|
||||||
//data.Acceleration.ToBytes(objectData, 24);
|
data.Position.ToBytes(objectData, 16);
|
||||||
data.Rotation.ToBytes(objectData, 36);
|
//data.Velocity.ToBytes(objectData, 28);
|
||||||
//data.AngularVelocity.ToBytes(objectData, 48);
|
//data.Acceleration.ToBytes(objectData, 40);
|
||||||
|
data.Rotation.ToBytes(objectData, 52);
|
||||||
|
//data.AngularVelocity.ToBytes(objectData, 64);
|
||||||
|
|
||||||
ObjectUpdatePacket.ObjectDataBlock update = new ObjectUpdatePacket.ObjectDataBlock();
|
ObjectUpdatePacket.ObjectDataBlock update = new ObjectUpdatePacket.ObjectDataBlock();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue