Learn how to use Vector3.Reflect to upgrade your Raycast/Hitscan bullets so they can ricochet or bounce off any objects!
The video tutorial takes you from no code at all to a fully functioning raycast hitscan gun (no randomness added, you can learn about that here) that can optionally enable bouncing bullets that will bounce based on a maximum bounce distance. This tutorial specifically does not use object pooling to keep the tutorial simple and easy to follow. If you don't know what Object Pooling is you can use this video for Unity 2020 and lower, or this one for Unity 2021+.
Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to https://patreon.com/llamacademy to show your support.
- YOUR NAME HERE!
- Raphael
- Andrew Bowen
- Gerald Anderson
- AudemKay
- YOUR NAME HERE!
- Bastian
- Trey Briggs
- YOUR NAME HERE!
Interested in other AI Topics in Unity, or other tutorials on Unity in general?
- Requires Unity 2020.3 LTS or higher.