Skip to content

In this tutorial repository you will learn how to construct doors that NavMeshAgents will open when they come nearby.

License

Notifications You must be signed in to change notification settings

llamacademy/ai-series-part-36

Repository files navigation

Navmesh AI Tutorial 36 - NavMeshAgents Opening Doors

In this tutorial repository you will learn how to construct doors that NavMeshAgents will open when they come nearby.

A few notes about the implementation:

  1. These doors automatically open when an Agent comes nearby using a Trigger, which requires your NavMeshAgents to have a Rigidbody on them.
  2. These doors automatically close when all Agents have left the Trigger. To make the doors stay open, simply do not call Door.Close();
  3. There is no animation currently tied to this opening behavior. There are some high level comments in DoorTrigger.cs on how you can do that.

Youtube Tutorial

Patreon Supporters

Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to https://patreon.com/llamacademy to show your support.

Gold Tier Supporters

  • YOUR NAME HERE!

Silver Tier Supporters

  • Raphael
  • Andrew Bowen
  • Gerald Anderson
  • YOUR NAME HERE!

Bronze Tier Supporters

  • Bastian
  • Trey Briggs
  • AudemKay
  • YOUR NAME HERE!

Other Projects

Interested in other AI Topics in Unity, or other tutorials on Unity in general?

Requirements

  • Requires Unity 2019.4 LTS or higher.
  • Utilizes the Navmesh Components from Unity's Github.

About

In this tutorial repository you will learn how to construct doors that NavMeshAgents will open when they come nearby.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project