NavMeshAgent rotate around pivot with radius

Hi guys,

I am trying to make a GameObject with a NavMeshAgent rotate around a pivot. I need to use the agent and not the Transform, so Transform.RotateAround() is not an option here.

What I currently have is the following:

    void RotateAgentAroundObject(GameObject obj)
    {
        var offsetObj = obj.transform.position - transform.position;
        var dir = Quaternion.Euler(0, 30, 0) * offsetObj;
        dir += transform.position;
        agent.destination = dir;
    }

The question is: how do I influence the radius of the rotation here? Where should I intervene to, say, make the agent rotate around the GameObject at 5 units of distance?

Thanks to anybody!

To answer my own question (thanks to @rsulkosky for bringing this up again), the way I ended up doing it, for having an hypothetical enemy strafing around the player, is the following:

var offsetPlayer = player.transform.position - enemy.transform.position;
var dir = Vector3.Cross(offsetPlayer, Vector3.up);
enemy.agent.SetDestination(enemy.transform.position + dir);

I did not take in consideration the radius because it is fine for me that the enemy starts strafing at any potential distance for the player.