Рет қаралды 4,288
Go to this video's Sponsor: snhu.edu/llamacademy to see what the current average annual salary for a game developer programmer is and learn how you can get started!
In this tutorial you'll learn how to combine the Unity Physics system and the NavMeshAgent to apply realistic knockback forces to the NavMeshAgents!
👨💻 As always, all code from this video is available on GitHub: github.com/llamacademy/knockb...
🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: www.jetbrains.com/store/?sect...
📚 Resources:
⚫ Gun Series Playlist: • Scriptable-Object Base...
⚫ AI Series Playlist: • AI Tutorial Series in ...
⚫ OnCollisionEnter Docs: docs.unity3d.com/ScriptRefere...
⚫ Collision.impulse Docs: docs.unity3d.com/ScriptRefere...
⚫ Shooting with the Gun System: • Shooting, Simple Sprea...
⚫ NavMeshAgent Avoidance: • NavMeshAgent Avoidance...
🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
📚 Take my Unity ShaderGraph Course:
www.gamedev.tv/p/unity-shader...
Become a Supporter:
🌟 Patreon: / llamacademy
🌟 KZbin Member: / @llamacademy or click the Join button on any video
🌟 GitHub Sponsor: github.com/sponsors/llamacademy
Use these affiliate links to do your Asset Store / Humble Bundle Shopping!
💸 Check out the latest Humble Bundles www.humblebundle.com/software...
💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! assetstore.unity.com/publishe...
💸 Save up to 50% on NEW Assets: assetstore.unity.com/?new_sal...
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment #ai
Chapters:
00:00 What to Expect
02:17 Enemy Configuration
05:08 Sponsor: Southern New Hampshire University
06:30 Knockback interface - IKnockbackable.cs
07:00 Apply Knockback on IKnockbackables - GunScriptableObject.cs
10:03 Quickly Review EnemyMovement.cs
10:58 Get Knocked Back - EnemyMovement.cs
14:42 Demo 1
15:06 Polishing the Effect - EnemyMovement.cs
16:20 Chain knock backs! - KnockbackOnCollision.cs
17:32 Add KnockbackOnCollision to Prefab & Final Demo
17:55 Final Considerations, Closing Thoughts, & Support LlamAcademy