playMaker

Author Topic: Navmesh Agent move with Root Motion  (Read 3503 times)

Kubold

  • Full Member
  • ***
  • Posts: 112
Navmesh Agent move with Root Motion
« on: April 14, 2018, 06:34:16 AM »
It would be awesome to have an action that would move a NavMesh Agent using Root Motion.

Like in the "CouplingAnimationAndNavigation" Manual: https://docs.unity3d.com/Manual/nav-CouplingAnimationAndNavigation.html

More technical explanation (as I understood): The action should turn off Auto Position Update, provide a desired (not current) veloctiy vector for the Animator, so you can use it in a blend tree and update the Navmesh Agent Position once after it moves with root motion, so it matches the position of the character, for next frame calculation.

It looks like this is more-less possible using existing actions, except the last bit - updating the Agent position to the actual position of the character after it moves with root motion. It would be very useful to have it all in a "Root Motion Agent Move" Action.

Thanks!
« Last Edit: April 14, 2018, 06:38:11 AM by Kubold »