translate character positon each frame based on camera position