playMaker

Author Topic: OnAnimatorMove (add/control root motion by playmaker script)  (Read 4230 times)

christougher

  • Playmaker Newbie
  • *
  • Posts: 36
OnAnimatorMove (add/control root motion by playmaker script)
« on: April 25, 2015, 03:28:55 PM »
For those animations which are in-place but we would like to add root motion using the OnAnimatorMove function could really make things easier.  I hope this isn't recreating the wheel but I've thus far been unable to figure it out...

here's the unity doc reference:
http://docs.unity3d.com/Manual/ScriptingRootMotion.html

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: OnAnimatorMove (add/control root motion by playmaker script)
« Reply #1 on: April 27, 2015, 03:50:43 AM »
Hi,

 I created a PlayMakerAnimatorMoveProxy for custom actions to catch the OnAnimatorMove call. It's in the Mecanim Pacakge on the wiki:

https://hutonggames.fogbugz.com/default.asp?W1031

I use it in the action "SetAnimatorTarget" for example. The action works on regular update by default, but if you drop a PlayMakerAnimatorMoveProxy on the GameObject, then it will catch that and work on Animator Move.

Let me know if that works for you, else, if you have a case, that would be great, then I can build the proper setup so that you can do it in PlayMaker.

 Bye,

 Jean