I'm trying to create a camera in a 3D environment that is controlled by a mouse and the WASD keys. So far i can get it to move, but I tried using spherical coordinates to help me control the direct the camera points with the mouse but it is really glitchy. What am I doing wrong? I also wanted to use the robot class to keep the mouse centered in the screen but that is not working either.