Repair the collision detection creation code of the texturepacker