Hitscan Guns with Bullet Tracers | Raycast Shooting Unity Tutorial
Published: 30 Nov 2021
Learn how to show bullet trails, aka bullet tracers to your "hitscan" guns that use Raycast. This easy to implement VFX is a great way to show your players where the bullets are going besides just bullet impacts.
In the tutorial you'll learn how to implement a hitscan gun that does not use rigidbody physics, but instead uses a Raycast to determine if the bullet should hit or not. You'll learn how to add in variable bullet spread, show the bullet trail, and play an impact particle system at the location if impact.
🔶 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/raycast-bullet-trails
🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly
📚 Resources:
🟠 Bouncing Bullets, Handle Misses, and Constant Bullet Speed: https://youtu.be/GkStW8-Q5P0
🟠 Introduction to Object Pooling: https://youtu.be/fsDE_mO4RZM
🟠 2021 Native Object Pooling API: https://youtu.be/zyzqA_CPz2E
🟠 Configure Bullet Trails with ScriptableObjects: https://youtu.be/_ujeHhvOlZU
🟠 Spawn a Unique Impact Particle System Per Material: https://youtu.be/2bPd_dmqGuM
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.