public void setPitch(float pitch) {
        if(pitch <= 90 && pitch >= -90)
            this.pitch = pitch;
        else if(pitch > 90) {
            this.pitch = 90;
        } else {
            this.pitch = -90;
        }
    }