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. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    This is not an issue of navigation, as you might have guessed considering your other post. Navigation technically only concerns itself with finding a path from A to B and moving along it. For the dragging to work you're indeed better off to handle it in a separate script like a state machine. That'll also allow you to control other things like animation better.
     
  3. Corva-Nocta

    Corva-Nocta

    Joined:
    Feb 7, 2013
    Posts:
    801
    Yeah its seeming like I'll have to look into other methodes. Right now I am just rotating the entire gameobject 180 then rotating the model 180 back. It works well enough for right now. Thanks for the input!