Is there a way to make the NavAgent return paths without other features?

Hello ! I am new to unity.

Currently I am making a character that uses character controller with physics.

A NavAgent is disabled and attached to the character as well.

I want to use the NavAgent.CalculatePath method to obtain a path to my destination but seems like I have to enable the NavAgent or there will be errors everywhere.

However if I enable the NavAgent the physics will break and the character will not move.

Is there a way to use the calculate path feature of the NavAgent only?

Many thanks !

I have made a pastebin, that shows how you can use CalculatePath without a NavAgent. I hope it helps.

Did not know there were calculatepath in there. Thanks !