Shrapnel Shotgun with Knockback | Guns Series 15 | Unity Tutorial
LlamAcademy LlamAcademy
21.2K subscribers
2,005 views
0

 Published On Feb 6, 2024

Learn how to extend our ScriptableObject gun system to support shrapnel shooting shotguns (or any other type of multi-bullet-per-shot gun)!
We'll also go into how to add knockback to arbitrary objects using our ICollisionHandler and some new interfaces!

👨‍💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/script...

đź“š Resources:
⚫ Full Gun Series Playlist in case you're new here:    • Scriptable-Object Based Gun System Fr...  
âš« Editor Scripting Tutorials:
âš« AI Series 51 for more in-depth explanations regarding Knockback & AI:
⚫ Physic Materials, Explained:    • Physic Materials, Explained. | Unity ...  
âš« Collision Impulse: https://docs.unity3d.com/ScriptRefere...

🧡 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:
https://www.gamedev.tv/p/unity-shader...

đź‘• Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/

Become a Supporter:
🌟 Patreon:   / llamacademy  
🌟 YouTube Member:    / @llamacademy   or click the Join button on any video
🌟 GitHub Sponsor: https://github.com/sponsors/llamacademy

Use these affiliate links to do your Asset Store / Humble Bundle Shopping!
đź’¸ Check out the latest Humble Bundles https://www.humblebundle.com/software...
đź’¸ Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe...
đź’¸ Save up to 50% on NEW Assets: https://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

Chapters:
00:00 Topic Introduction
00:45 High Level Overview
02:08 Configure a Shotgun
04:12 Support Minimum Spread & Add Multiple Bullets per Shot - ShootConfigScriptableObject.cs
05:18 Update Editor Script - ShootConfigScriptableObjectPropertyDrawer.cs
06:23 Configure New Values
06:47 Shoot Multiple "Bullets" Per Shot - GunScriptableObject.cs
07:28 Finalize Configuration to Test it
09:15 Demo Shotgun
09:57 Knockback - Create Physic Materials
11:13 Enemy AI - Key Components
11:54 Knockback Configuration - KnockbackConfigScriptableObject.cs
13:10 Add Knockback Config to GunScriptableObject.cs
13:45 Knockback.cs & Extend ICollisionHandler Capability
15:25 How to Knockback Enemies with IKnockbackable.cs & GunScriptableObject.cs
17:26 Example of Knockback in EnemyMovement.cs
21:46 Example of Simple Knockback - SimpleKnockbackable.cs
21:55 Chain Knockbacks - KnockbackOnCollision.cs
23:07 Final Setup & Configuration
25:13 Final Demo, Closing Thoughts, & Support LlamAcademy

show more

Share/Embed