The deconfining phase transition of SO(N) gauge theories in 2+1 dimensions