Simple Tutorial 3 work


In the fourth tutorial, the main task is to set up simple mouse movement and automatic pathfinding based on the Nav Mesh.

This is the rough map I built (actually the map is from Mylo download):

The main components are a capsule, a cube, a movable cube (the leftmost one on the map), and an obstacle, the capsule is controlled by the player (the mouse) and the Cube is controlled by the AI which predicts the player's direction of action and pursues it(Because I hate losing, I set the AI speed very low). 

  • Mouse - controlled movement:


  • Automatic pathfinding


  • Moving Cube

  • Chasing

Special thanks: part of the AI code was borrowed from the alien game code in KIT109 :)


In my experience, the Ray-based movement has always felt clunky and impossible to turn right away.

But for me, I prefer to use the keyboard to move and the mouse only to turn (such as the classic CS operation).

Get “UTAS KIT207 Portfolio"

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.