Knockback NavMeshAgents using Physics | AI Series 51 | Unity Tutorial
LlamAcademy
0:00 / 0:00
Knockback NavMeshAgents using Physics | AI Series 51 | Unity Tutorial
11 903 просмотра · 2 г. назад
LlamAcademy
31,1 тыс. подписчиков
11 903 просмотра · 2 г. назад
Go to this video's Sponsor: https://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!
🔶 ALL THINGS LlamAcademy now available at: https://llamacademy.dev/support including latest tutorials, courses, ways to support, and more! Check it out 🙂
👨💻 Get the FULL FREE PROJECT on GitHub: https://github.com/llamacademy/knockb...
🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?sect...
📚 Resources:
🟠 Gun Series Playlist: • Scriptable-Object Based Gun System From Sc...
🟠 AI Series Playlist: • AI Tutorial Series in Unity - NavMeshes, N...
🟠 OnCollisionEnter Docs: https://docs.unity3d.com/ScriptRefere...
🟠 Collision.impulse Docs: https://docs.unity3d.com/ScriptRefere...
🟠 Shooting with the Gun System: • Shooting, Simple Spread, and Bullet Trails...
🟠 NavMeshAgent Avoidance: • NavMeshAgent Avoidance in Depth - 5 Key Ta...
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
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