Create Bouncing/Ricocheting Raycast Bullets From Scratch! Unity Tutorial

Learn how to implement, from scratch, raycast (or “hitscan“) bullets, with trails, that can bounce/ricochet off objects! We’ll start off by using some free starter assets from Unity and the New Input System. We’ll write a Gun script from scratch that shoots raycast bullets that have a bullet trail / bullet tracer that shows where the bullet is going. Specifically, we’re not implementing bullet spread in this video to keep our gun shots accurate to showcase the ricochet behavior. Finally we’ll add in the bouncing bullet behavior and get into the demo. This video has some similarities to what I refer to as “the previous video“ where we first implemented Raycast Shooting and Bullet Tracers: This time we’re fixing some of the issues that were pointed out in the comments and adding new features! There are 3 key lessons to learn in this tutorial: ⚫ How to implement raycast bullets that move at a constant spe
Back to Top