Thanks Philbax, i solve problem by this tip “you could cache the location each frame and compare to the previously cached variable to calculate the amount the camera has moved”