Game Development Reference
In-Depth Information
F
Position
X: -0.8
Y: 0
Z: 10.7
F
Position
X: -2.2
Y: 2.7
Z: 5.2
If we take a look at the
Hierarchy
view, we will see something similar to the
following screenshot:
Then, if we click on
Waypoints
, and go to its
Inspector
view under the
Waypoints (Script)
,
we will see the
Order Direction
. We can also toggle it
On
or
Off
to enable the movement
direcion of the AI, which will also show the result on the editor screen by using the
OnDrawGizmos()
funcion, as we can see in the following screenshot:
We can also move the waypoint object around to serve what we need or even increase or
decrease the waypoint to fit our level.