Tutorial 3 devlog


This is the portfolio work for tutorial 3, which is about navigation (and ray casting).

We were supposed to use our own tourist attraction map. However, my map is a bit "far" since I was making a view on top of the mountain. So I decided to use the given sample map.

I made this little AI bot which treats the cuboid as obstacle by using Nav Mesh Obstacle function. It follows my click. 

Then I turned off "Carve" in the script, which means that the AI won't think about the path around the obstacle as soon as it receives the command. Though this robot acted quite "stupid" like hesitating.


Then I made an enemy object chasing the player. It reads in the movement of the player in each frame to predict the player's movement. 

The function I use for calculation is related to distance. The further the player is away from the enemy, the more prediction is made when calculating the direction.


Leave a comment

Log in with itch.io to leave a comment.