Projectile Guns | Scriptable Object Gun Series 6 | Unity Tutorial

Learn how to make your guns shoot projectile / Rigidbody bullets instead of only Raycasts / Hitscan! We'll look at how to shoot "real" bullets instead of only showing the trail renderer along a path so you can have more complex bullet physics including drag and bullet drop. We'll also see how to prevent a Rigidbody bullet from "teleporting" through objects when moving at high velocities! Since this is part 6 of the Gun Series, if you're just now jumping in it might be a little confusing. You can watch from the beginning to see how and why each line of code exists here starting from part 1:    • Shooting, Simple Spread, and Bullet Trails...   👨‍💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/script... 🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?sect... 📚 Resources: ⚫ Continuous Collision Detection: https://docs.unity3d.com/Manual/Conti... ⚫ The Collision Class: https://docs.unity3d.com/ScriptRefere... ⚫ OnCollisionEnter: https://docs.unity3d.com/ScriptRefere... ⚫ Impact Management System Tutorial:    • Impact Effects with Scriptable Objects | U...   🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support: 🌟 Patreon:   / llamacademy   🌟 YouTube Member:    / @llamacademy   or click the Join button on any video 📚 Take my Unity ShaderGraph Course: https://www.gamedev.tv/p/unity-shader... 👕 Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/ 💸 Use my Affiliate Link for Humble Bundles https://humblebundleinc.sjv.io/9g4ak4 💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe... (affiliate) 💸 Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal... (affiliate) Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase. Chapters: 00:00 Overview 02:07 Prevent Rigidbodies from "teleporting" through walls at high velocities 03:16 Raise Events on Collision - Bullet.cs 05:43 Hitscan and Projectile Support - ShootConfigScriptableObject.cs 06:10 Shooting Projectiles - GunScriptableObject.cs 08:38 Handle Impacts on Projectiles - GunScriptableObject.cs 11:15 Use Same Handler for Hitscan "Bullets" - GunScriptableObject.cs 11:41 Disabling TrailRenderer on Projectile - GunScriptableObject.cs 12:11 Create Bullet Prefab 13:00 Layers and Collision Configuration 13:57 Demo 15:06 Final Thoughts, What's Next, and Support LlamAcademy