/// <summary> /// Sends update of Field of Vision vertical angle to the simulator /// </summary> /// <param name="angle">Angle in radians</param> public void SetFOVVerticalAngle(float angle) { OpenMetaverse.Packets.AgentFOVPacket msg = new OpenMetaverse.Packets.AgentFOVPacket(); msg.AgentData.AgentID = Client.Self.AgentID; msg.AgentData.SessionID = Client.Self.SessionID; msg.AgentData.CircuitCode = Client.Network.CircuitCode; msg.FOVBlock.GenCounter = 0; msg.FOVBlock.VerticalAngle = angle; Client.Network.SendPacket(msg); }
public void SetAgentFOV() { OpenMetaverse.Packets.AgentFOVPacket msg = new OpenMetaverse.Packets.AgentFOVPacket(); msg.AgentData.AgentID = client.Self.AgentID; msg.AgentData.SessionID = client.Self.SessionID; msg.AgentData.CircuitCode = client.Network.CircuitCode; msg.FOVBlock.GenCounter = 0; msg.FOVBlock.VerticalAngle = Utils.TWO_PI - 0.05f; client.Network.SendPacket(msg); //client.Self.Movement.SetFOVVerticalAngle(Utils.TWO_PI - 0.05f); }
/// <summary> /// Sends update of Field of Vision vertical angle to the simulator /// </summary> /// <param name="angle">Angle in radians</param> public void SetFOVVerticalAngle(float angle) { OpenMetaverse.Packets.AgentFOVPacket msg = new OpenMetaverse.Packets.AgentFOVPacket(); msg.AgentData.AgentID = Client.Self.AgentID; msg.AgentData.SessionID = Client.Self.SessionID; msg.AgentData.CircuitCode = Client.Network.CircuitCode; msg.FOVBlock.GenCounter = 0; msg.FOVBlock.VerticalAngle = angle; Client.Network.SendPacket(msg); }
public void SetAgentFOV() { OpenMetaverse.Packets.AgentFOVPacket msg = new OpenMetaverse.Packets.AgentFOVPacket(); msg.AgentData.AgentID = client.Self.AgentID; msg.AgentData.SessionID = client.Self.SessionID; msg.AgentData.CircuitCode = client.Network.CircuitCode; msg.FOVBlock.GenCounter = 0; msg.FOVBlock.VerticalAngle = Utils.TWO_PI - 0.05f; client.Network.SendPacket(msg); //client.Self.Movement.SetFOVVerticalAngle(Utils.TWO_PI - 0.05f); }