Huge change to adapt to the new libgdx implementation of 3D