Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Opposite direction

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

  1. Back2Basics

    Back2Basics

    Joined:
    Apr 2, 2015
    Posts:
    1
    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!