video thumbnail 20:58
Introduction to Game Development (E18: raycasting)

2017-03-01

[public] 116K views, 4.01K likes, 22.0 dislikes audio only

channel thumbSebastian Lague

Welcome to episode 18 of this introduction to game development in Unity with C#.

In this episode we look at raycasting.

Project files:

https://github.com/SebLague/Intro-to-Gamedev

If you'd like to support these videos, you can make a recurring monthly donation (cancellable at any time) through Patreon: http://bit.ly/sebPatreon

Or a once-off donation through PayPal:

http://bit.ly/SupportGamedevTutorials


start off by creating a new cube
/youtube/video/fFq5So-UB0E?t=69.158997
use the debug dot draw line method
/youtube/video/fFq5So-UB0E?t=208.16
assign this test layer to our second cube
/youtube/video/fFq5So-UB0E?t=353.76999
write a query trigger interaction
/youtube/video/fFq5So-UB0E?t=427.94
calculate the correct rotation of our object
/youtube/video/fFq5So-UB0E?t=826.95898
add a circle collider
/youtube/video/fFq5So-UB0E?t=922.92999
Support these videos on Patreon patreon.com
https://www.patreon.com/SebastianLague
Delegates and Events by Sebastian Lague
/youtube/video/G5R4C8BLEOc
Field of view visualisation (Unity 5) by Sebastian Lague
/youtube/video/rQG9aUWarwE