Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.