Question!

I'm 36 weeks and I'm starting to try and trigger labor. Well I've heard everywhere that sex can trigger it but I have a question. Is it the orgasm or him hitting the cervix or does the sperm have something to do with it?