Raycasts, Explained. Every Physics "Cast" Visualized




Published: 09 Aug 2022

Many of us kind of jumped into gamedev without a solid understanding of these Physics APIs such as Raycast and Spherecast. In this video I aim to make it really clear how each of the Ray, Sphere, Box, and Capsule casts work, look, behave, and how you can use each one of them to achieve your "casting" goals!


In this tutorial video you can see the following "casts" visualized:

1. Raycast

2. RaycastAll

3. Spherecast

4. SpherecastAll

5. Boxcast

6. BoxcastAll

7. Capsulecast

8. CapsulecastAll

each with different variations with trigger collision, layer masking, and more!


🔶 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/raycasting-explained

🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly


📚 Resources

🟠 Docs page: https://docs.unity3d.com/ScriptReference/Physics.html


Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.


Connect on Social Media

Some links may be affiliate links, which at no additional cost to you, gives LlamAcademy a small portion of the purchase.