swearing at a traffic cop

how do you not feel bad for what you did? it was 100% ur fault.. and u cussed at a police officer. ur lucky he didnt detain you right then and there.