playMaker

Author Topic: Synchronizing Mechanim with NavMesh Agent  (Read 724 times)

Maximilian0

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
Synchronizing Mechanim with NavMesh Agent
« on: December 09, 2018, 07:59:02 AM »
Hi,

I know there are already some threads about that topic but none of them seem to have an answer that makes sense to me.

So far I have figured out that some of the nav agents values need to be given to the blend tree (I'm using the standard Unity Third Person Animator) to synchronize the movement with the animation and there seems to be an action that does exactly that called "Nav Mesh Agent Animator Synchronizer". However, that action has no parameters and no documentation. When I put it on my script it either breaks the Nav Agent because it doesn't seem to be able to turn anymore or it does nothing at all.

I feel that the whole thing is a little bit paradox: I need the rotation of the agent to apply on the animation, but, if I use root motion, I need the animation to make the agent rotate in the first place... admittedly I am not very good at math though.

So: do I misunderstand the mentioned action and use it wrong somehow or do I need to do additional calculations for it to work?

Thanks for any help!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14703
  • Official Playmaker Support
    • View Profile
Re: Synchronizing Mechanim with NavMesh Agent
« Reply #1 on: December 20, 2018, 02:25:04 AM »
Hi,

 have you sorted it out already?

Bye,

 Jean