Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Mecanim: modifying animation in script when animate physics in on, impossible ?

Discussion in 'Animation' started by Staross, Sep 24, 2013.

  1. Staross

    Staross

    Joined:
    Jan 6, 2013
    Posts:
    51
    So usually when you want to modify mecanim animations using some script it's pretty easy: animations are done by unity around the update function, so you can directly modify bone rotation in LateUpdate().

    Now I'm using Animate Physics on my animator, which means that my animation are done around FixedUpdate instead, which allows my animation to interact correctly with physics (I need it because I have some cloths hanging on my character that are controlled by physics).

    The problem is that modifying animations in LateUpdate doesn't work anymore, because it's not in synch with FixedUpdate.

    Any idea of how I could do it ?

    Thanks!
     
  2. Staross

    Staross

    Joined:
    Jan 6, 2013
    Posts:
    51
    Should I report a bug for this ? It's not really a bug, more of a feature incompatibility I guess.