Skip to content

Learn how to use Vector3.Reflect to upgrade your Raycast/Hitscan bullets so they can ricochet or bounce off any objects!

License

Notifications You must be signed in to change notification settings

llamacademy/raycast-bouncing-bullets

Repository files navigation

Bouncing Bullets with Hitscan Guns

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+.

Youtube Tutorial

Patreon Supporters

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.

Gold Tier Supporters

  • YOUR NAME HERE!

Silver Tier Supporters

  • Raphael
  • Andrew Bowen
  • Gerald Anderson
  • AudemKay
  • YOUR NAME HERE!

Bronze Tier Supporters

  • Bastian
  • Trey Briggs
  • YOUR NAME HERE!

Other Projects

Interested in other AI Topics in Unity, or other tutorials on Unity in general?

Requirements

  • Requires Unity 2020.3 LTS or higher.

About

Learn how to use Vector3.Reflect to upgrade your Raycast/Hitscan bullets so they can ricochet or bounce off any objects!

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project