I'm glad your panic didn't result in a catastrophe. I don't know what road you were on but most are way wide enough for a car, a motorcycle & a truck. You did the right thing hitting the centerline but the braking was obviously unnecessary & only served to increase your panic. The next time this happens, remain calm, stay on the gas, hit the centerline, & direct your vision to the clear path through, not the obstacles. When overtaking multiple vehicles especially aware of any signs that someone is going to make a left turn. I hope you learn from this experience.