playMaker

Author Topic: Template for moving a character towards another gameobject  (Read 2951 times)

tchrisbaker

  • Playmaker Newbie
  • *
  • Posts: 8
Template for moving a character towards another gameobject
« on: September 06, 2016, 12:23:03 AM »
Attached is a template I created to move a character towards another character. It uses Navmesh Raycast to see if it can simply move forward (using a root motion animation). If not, it will use Unity pathfinding. I call it using RunFSM  every game loop. I think I put a small wait in between calls so it can reevaluate whether to use pathfinding or not.