Raycasts, Explained. Every Physics Cast Visualized | Unity Tutorial @LlamAcademy
Raycasts, Explained. Every Physics Cast Visualized | Unity Tutorial  @LlamAcademy
Uploaded August 2022 | Updated September 2026, 1 hour ago
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: github.com/llamacademy/raycasting-explained
๐Ÿท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: jetbrains.com/store/?section=personal&billing=yearly

๐Ÿ“š Resources
๐ŸŸ  Docs page: 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.

Chapters:
00:00 What are Raycasts?
03:19 Raycasts Visualized
05:00 Raycast All Visualized
06:48 Ultimate Fantasy Unity RPG Developer Bundle!
08:23 Spherecast Visualized
09:02 Boxcast Visualized
09:53 Capsulecast Visualized
11:15 SpherecastAll Visualized
12:37 BoxcastAll Visualized
13:08 CapsulecastAll Visualized
14:19 The NonAlloc-Variants
Raycasts, Explained. Every Physics Cast Visualized | Unity TutorialSave and Load a Player Loadout | Gun Series Part 14 | Unity TutorialData Persistence - Save & load your game state while avoiding common mistakes #shortsGun Sound Effects with an Audio Config ScriptableObject | Gun Series 5 | Unity TutorialProjectile Gun Support | Scriptable Object Gun Series Part 6 | Unity Tutorial #shortsHow I made an Inverse Tower Defense game with Unity 6. Its FREE & Open Source.I accidentally created a dodgeball game with projectile motion & movement prediction #ShortsIN-EDITOR Automatic LOD Generation for 3D Models | Unity Tutorial #shortsMake (Mostly) Accurate Projectile Throwing AI at Moving Targets | Unity Tutorial #Shorts8 Inverse Kinematics Solutions in Unity Evaluated - Which should you use?Enemy State Machine AI FULL IMPLEMENTATION | AI Series 47 | Unity TutorialAnimation-driven Reloading | Gun Series 4 | Unity Tutorial #shorts
LlamAcademy |

Raycasts, Explained. Every Physics "Cast" Visualized | Unity Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER