What determines your period pain ? Weight?

Ayisat
Does anyone know if period pain and being overweight have anything to do with each other? If you are over weight is the pain worse and if you are closer to "normal" body weight it hurts less? Or do you think it's genetics. What determines period pain???