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

Question With PolyNav2D, why agents are pushed aways very quickly upon start moving if they sticked together?

Discussion in 'Navigation' started by Solidcomer, May 21, 2020.

  1. Solidcomer

    Solidcomer

    Joined:
    Sep 12, 2017
    Posts:
    95
    I have installed PolyNav2D plugin, and have several agents, if I click and hold, all agents will move to one place and get overlaped, and when I click another point on the map, all agents will be first pushed away very quickly as if they were added a very strong force.
    With this, I have to attach a rigidbody2D and circleClider2D for each agent, and set Avoid Radius no greater than the radius of the circleClider2D, so that they don't overlap. But I need them to overlap a little bit.

    I'm wondering how to reduce the force that break them apart?

    Attached is the PolyNavAgent params of my agents.

    Thank you very much.
     

    Attached Files:

  2. vhman

    vhman

    Joined:
    Aug 13, 2018
    Posts:
    350
  3. Solidcomer

    Solidcomer

    Joined:
    Sep 12, 2017
    Posts:
    95
    Will do, thanks.