// Since version 1.40.4 of the Linden simulator, sending this update
// causes corruption of the agent position in the simulator
if (Client.network.getCurrentSim() != null && (!Client.network.getCurrentSim().getHandshakeComplete()))
return;
AgentUpdatePacket update = new AgentUpdatePacket();
update.AgentData.AgentID = Client.self.getAgentID();
update.AgentData.SessionID = Client.self.getSessionID();
update.AgentData.BodyRotation = bodyRotation;
update.AgentData.HeadRotation = headRotation;