Intro To RayCasting In Our FPS Game

How was the first steps to adding raycasting to our game? Did it make sense?

I’ve seen raycasting from a different course, and in the RPG course, and I’ve always found it daunting and never fully understood it. Thanks to Rick going through it in baby steps, it’s finally starting to make sense! I think typing out the RaycastHit variable before creating it was a good idea, too. So thanks Rick!

1 Like

Thanks for the feedback! To be honest, I was exactly the same, it seemed super complex when I first was exposed to it. But when you break it down, its reasonably straightforward.

2 Likes

Added some sound effects using the ring buffer concept from the previous course.

http://devlog.merlinsbeard.net/2020/10/21/armed-and-dangerous/

Could you please help me with Input System, I try to use New Input System. My OnFire() event dosn’t work until i create New InputActions file “Weapon” for Carbine,is it possible to use one InputActions file for differect objects/scripts?


Works only if to add this one Actions file to Carbine.

Finaly, made it in this variant. Is it good way to do it?