Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Opposite direction

Discussion in 'Navigation' started by Back2Basics, Jul 29, 2015.

  1. Back2Basics


    Apr 2, 2015
    Hi there. I've got something like

    nav = GetComponent <NavMeshAgent> ();

    nav.SetDestination (player.position);

    And it's works. But now i need this object to move in (maybe random but) opposite direction of the player. Something like hide'n'seek. TU!