Procedural Recoil and Bullet Spread | Gun Series 2 #Shorts
Published: 03 Nov 2022
Full Tutorial: https://youtu.be/pwq7F5DeQnI
Learn how to implement procedural bullet spread and gun recoil into your game with this ScriptableObject-based gun system (Part 2 of the Gun Series!)
In this Unity Tutorial you'll learn how to implement recoil/bullet spread in 3 ways -
1. No spread - always perfectly accurate
2. "Simple" Spread - the most common way you'll find to implement spread, based on random values in a Vector3 Range
3. Texture-Based Spread - sampling a texture to define a "pattern of randomness" based on some texture data. Using this you can get something like the recoil in popular games such as Counter-Strike.
Bullet spread and Recoil are inseparable topics, because the recoil actually makes the bullet spread happen! Learn how to do both in this tutorial!
As always, all code from this video is available on GitHub: https://github.com/llamacademy/scriptable-object-based-guns
📱 Let's stay connected
YouTube: https://youtube.com/c/LlamAcademy
Patreon: https://www.patreon.com/llamacademy
Facebook: https://facebook.com/LlamAcademyOfficial
Twitter: https://twitter.com/TheLlamAcademy
TikTok: https://tiktok.com/@LlamAcademy
Instagram: https://instagram.com/LlamAcademy
----
Believe in LlamAcademy's mission and have received value from the videos? Consider becoming a Patreon supporter: https://www.patreon.com/llamacademy
----
Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.
I also have some Unity Assets: https://assetstore.unity.com/publishers/22409?_aid=1101l9QvC
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.