Search Unity

Is it possiable to move multi-type agents just in one surface

Discussion in 'ML-Agents' started by MaloFleur, Jul 7, 2022.

  1. MaloFleur

    MaloFleur

    Joined:
    Apr 1, 2020
    Posts:
    3
    For example, I have an agent with type Humanoid, and another with type bot1
    upload_2022-7-7_10-31-51.png

    upload_2022-7-7_10-32-9.png
    A surface with humanoid-type is added to the platform, another is disabled
    upload_2022-7-7_10-32-32.png
    When I click the screen, these two agents try to move to the screen point, and the agent with type bot1 failed with error "SetDestination" can only be called on an active agent that has been placed on a NavMesh.
    (if enabled the second one, it works)
    What I want to say is that, if there are more than two agents, such as tens or hundreds, to bake a surface for each specific agent may be complicated and cost performance
    So I'm considering that is it possiable to provide only one surface, and all of the agent can move on it, what's more, when unity calculate the path(cornors), it will consider the radius of each specific agent type to choose the right path.