fix glitches with movement. camera restrictions not added. rotation not added.