In this video I'm going to show you the best way to implement doors into a game, we're going to make them do a few things:
Open and close when interacted with
Open in the correct direction away from the player so they aren't batted backwards
Automatically close when the player moves away from them
It's gonna be a good one guys, stick around!
Join me and learn your way through the Unity Game Engine, the C# language and the Visual Studio editor. Remember, if this video was useful then DROP A LIKE! 👍
💯 Want to help me out and allow me to keep making these tutorials? Consider supporting the channel on Patreon:
/ comp3interactive
🤩 SPONSORED LINKS:
https://www.gigatank3000.com
/ gigatank3000
💬 Join the Discord community here:
/ discord
📱 Follow me on Twitter:
/ comp3int
📱 Play my games:
PC/Mac/Linux: https://comp3interactive.itch.io/
Google Play: https://bit.ly/2TisAQo
#UnityTutorial #Unity3D #Comp3interactive #GameDev
0:00 - Intro
1:15 - Exporting a door from Blender
2:00 - Importing to Unity
3:28 - Creating the Door script
8:24 - Creating the Animations
11:00 - Setting up the Animator
15:19 - Working example
16:19 - Automatic closing
18:30 - Locking interaction when animating
20:23 - Outro