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










