Search Unity

Can I navigate backwards?

Discussion in 'Navigation' started by Corva-Nocta, Oct 7, 2018.

  1. Corva-Nocta

    Corva-Nocta

    Joined:
    Feb 7, 2013
    Posts:
    801
    I am trying to have a pet dog be able to walk up to an item then drag it nack to the player. The item is too heavy for the dog to pick up so it has to drag with its teeth. I have all my navigation set up just fine getting to and from the object, but I would like to have the dog gameobject moving "backwards" when navigating to the player. Is there an easy way to do this?

    I made a similar post in scripting about just having the model rotate so that might work if I can't navigate backwards
     
  2. newjerseyrunner

    newjerseyrunner

    Joined:
    Jul 20, 2017
    Posts:
    966
    Have your main object inside of your navmeshagent. Flip the inner object by 180 degrees when you want it to move backwards.