Objective: At the end of the guide the reader will learn how to make a raycast inside Unity.

What’s a Raycast?

When should we use them?

League of legends capture

First we have to add a NavMeshAgent component to our player.

You should create an static object to set it as walkable area setting it by static

Then we have to create a NavMeshSurface so Unity will know which are the walkable objects

Now it’s time to create our movement script!

Attach it to the player and it will move!