Moved camera position calculation