Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: Kubold on April 14, 2018, 06:34:16 AM

Title: Navmesh Agent move with Root Motion
Post by: Kubold 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!