playMaker

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

tchrisbaker

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Template for moving a character towards another gameobject
« on: September 05, 2016, 09:23:03 PM »
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.