Switching between physics engines in 2D model