He used a dynamic mesh generation. It is not as complicated as you might think tongue

(Still, nice job wink!)