Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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!