Update: camera vertical threshold added, working spherical coordinate system