Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question How do you get an agent to wander through a conditional maze? And how to make the agent double its

Discussion in 'ML-Agents' started by FastMod, May 30, 2024.

  1. FastMod

    FastMod

    Joined:
    Feb 21, 2024
    Posts:
    1
    I would be very grateful if you could help me with these questions that I had while creating the code for the agent. And also helped with advice on how to make the agent after 30 seconds to get not the exact but approximate location of the victim and move in that direction without acceleration.
     
  2. michael298a

    michael298a

    Joined:
    Jun 17, 2024
    Posts:
    2
    Hello,
    Use a timer to trigger the location approximation after 30 seconds.
    Implement a pathfinding algorithm like A* to determine the direction.
    Update the agent’s position at a constant speed towards the target.
    This approach does not involve acceleration and should move the agent towards an approximate location of the target
    https://www-mypascoconnect.com
    Regards