r/unity_tutorials • u/LlamAcademyOfficial • Aug 09 '22
Video See every "cast" in Unity visualized! Raycasts, Spherecasts, Boxcasts, even Capsulecasts (and their "All" variants), explained in this Unity Tutorial! Full video link in comments!
227
Upvotes
8
3
2
2
2
7
u/LlamAcademyOfficial Aug 09 '22
Full Tutorial on YouTube
Hey all! Happy #TutorialTuesday!
Many of us kind of jumped into gamedev without a solid understanding of "casting", like 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:
Raycast
RaycastAll
Spherecast
SpherecastAll
Boxcast
BoxcastAll
Capsulecast
CapsulecastAll
each with different variations with trigger collision, layer masking, and more!
With 19 customizable scenarios, you know the full project being available on GitHub will help you better understand how to use each of these fundamental gamedev functions!