Raycasting in Unity Part 1: Vectors

This is the first post in a three part series on Raycasting in Unity. The follow up posts are:

Find the code on GitHub


Raycasting is the process of pointing (“casting”) a line (“ray”) in a direction and seeing what it hits.

The process is useful for, among other things, placing and selecting objects, giving AI agents a sort of vision, and building hoverbikes or a flock of sheep.

This guide will walk through some of the foundational concepts, and then build some basic examples in Unity.

Continue reading “Raycasting in Unity Part 1: Vectors”