/// <param name="simulator">A reference to the <seealso cref="OpenMetaverse.Simulator"/> object where the object resides</param>
/// <param name="localID">The objects ID which is local to the simulator the object is in</param>
/// <param name="material">The new material of the object</param>
public void SetMaterial(Simulator simulator, long localID, Material material)
{
ObjectMaterialPacket matPacket = new ObjectMaterialPacket();
matPacket.AgentData.AgentID = Client.self.getAgentID();
matPacket.AgentData.SessionID = Client.self.getSessionID();
matPacket.ObjectData = new ObjectMaterialPacket.ObjectDataBlock[1];