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:
- These doors automatically open when an Agent comes nearby using a Trigger, which requires your NavMeshAgents to have a Rigidbody on them.
- These doors automatically close when all Agents have left the Trigger. To make the doors stay open, simply do not call
Door.Close();
- 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.
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.
- YOUR NAME HERE!
- Raphael
- Andrew Bowen
- Gerald Anderson
- YOUR NAME HERE!
- Bastian
- Trey Briggs
- AudemKay
- YOUR NAME HERE!
Interested in other AI Topics in Unity, or other tutorials on Unity in general?
- Requires Unity 2019.4 LTS or higher.
- Utilizes the Navmesh Components from Unity's Github.