Skip to content

Latest commit

 

History

69 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StateMachineAI

WebGL build at https://jhocking.itch.io/state-machine-ai

This is a demo of a simple AI that uses a state machine and waypoints. Arrow keys move the player, while the enemy behavior is:

  • slowly patrol waypoint path until see player
  • brief pause for guard noticing player, then give chase
  • if the player goes around a corner just move to last place seen
  • once reach that target check if can see player now
  • if not then pause (maybe look around) before returning to patrol
  • navmesh back to path, with obstacle avoidance at all times

resources for first pass:

later improvements:

About

Demo of a simple AI that uses a state machine and waypoints in Unity

Resources

Stars

9 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages