Added local x and y axis movement. Panning still doesn't work.