Back to Browse

Raycasts in Unity (made easy)

149.5K views
Aug 12, 2022
16:30

▸ Learn how to CODE in Unity: https://gamedevbeginner.com/how-to-code-in-unity/?utm_source=youtube&utm_medium=description&utm_campaign=raycasts&video=B34iq4O5ZYI Learn how to use the Raycast function in Unity. 00:00 Intro 00:57 Creating a Ray 02:33 The Raycast Hit variable 03:11 The Raycast function 04:48 Layermasks 07:10 How to exclude Trigger Colliders 08:26 Raycast All 10:03 Raycast Non-Alloc 10:30 Other types of Raycast 13:32 Raycast in 2D 16:00 Outro You'll learn how to create Rays, how to use Raycast Hit data from collisions when they happen and how all the different types of Raycast function work. Read my full article here: https://gamedevbeginner.com/raycasts-in-unity-made-easy/ Outro music: New Year by Bad Snacks Unity icons created by Freepik - https://www.flaticon.com/free-icons/unity Cursor icons created by Pixel perfect - https://www.flaticon.com/free-icons/cursor Chalkboard image - School rules photo created by kjpargeter: https://www.freepik.com/photos/school-rules

Download

1 formats

Video Formats

360pmp423.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Raycasts in Unity (made easy) | NatokHD