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.

Navmesh question

Discussion in 'Navigation' started by Paykoman, Oct 3, 2015.

  1. Paykoman

    Paykoman

    Joined:
    Jun 26, 2014
    Posts:
    500
    Hi guys im working in a click to move game and i just have a simple issue, right now the player and enemy has both avoid priority set to 50. i try mess with this values but right now the enemy hit the player without push it back but when the player hit enemy it push enemy back. is there a way to stop both to pushing another?? Ty
     
  2. AngryAnt

    AngryAnt

    Keyboard Operator Moderator

    Joined:
    Oct 25, 2005
    Posts:
    3,045
    I take it that you're interested in having only one agent being pushed? That is not built into the system at the moment. What you could try is to manually handle position updates and only allow the position of the player agent to change when movement is intended.
     
  3. Paykoman

    Paykoman

    Joined:
    Jun 26, 2014
    Posts:
    500
    Wt i try to accomplish is to no one push the other when attaking.. The enemy works perfect But when the player hit the enemy it moves forward.. I will try use colliders and compare tag to difere enemy for floor But probably the Collider will push it back too...