Search Unity

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

Discussion in 'Navigation' started by wiwi56888_unity, Feb 10, 2022.

  1. wiwi56888_unity

    wiwi56888_unity

    Joined:
    Feb 2, 2022
    Posts:
    2
    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 !
     
  2. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
  3. wiwi56888_unity

    wiwi56888_unity

    Joined:
    Feb 2, 2022
    Posts:
    2
    Did not know there were calculatepath in there. Thanks !