Co-parenting with a toxic person

Anyone ever have to co-parent with someone who refuses to communicate about the child, says mean things about you to the child, and is rude to you in front of the child? What did you do? I have a court date next week and want to know what others have experienced happen in court with regards to this rude behavior.