/// <summary> /// Send an AgentUpdate with the camera set at the current agent /// position and pointing towards the heading specified /// </summary> /// <param name="heading">Camera rotation in radians</param> /// <param name="reliable">Whether to send the AgentUpdate reliable /// or not</param> public void UpdateFromHeading(double heading, bool reliable) { Camera.Position = Client.Self.SimPosition; Camera.LookDirection(heading); BodyRotation.Z = (float)Math.Sin(heading / 2.0d); BodyRotation.W = (float)Math.Cos(heading / 2.0d); HeadRotation = BodyRotation; SendUpdate(reliable); }