Search Unity

Tutorial - Make a NavMeshAgent Hide or Take Cover From Other Objects | AI Series Part 29

Discussion in 'Community Learning & Teaching' started by ChrisKurhan, Sep 21, 2021.

  1. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    268


    Hey all! Happy #TutorialTuesday!

    This week learn how to make your NavMeshAgents run away from objects (such as a player, or grenade)! You'll learn how to make a highly configurable script to help the AI make a determination on what makes a "good" hiding spot. Things like obstacle height, how far away from the object it should be, and how far away from the object it should face!

    As always, full project code is available on GitHub!

    If you're getting value from this series, please consider liking, subscribing, and sharing to help these tutorials reach and add value to even more people. New tutorials are posted every Tuesday!