How do you generate power in a roundhouse kick in Muay Thai?

The power comes from a coordinated full body motion. You pivot on the ball of your foot,  turn your hips and torso, and throw your leg forward in a sideways motion resembling the swinging of a baseball bat.