I am trying to animate hydrolic machines that will interact with pipes.
The animation is based on simulation data that is received over the network.
To animate a machine I do the following :
In FixedUpdate() I set the animation
AnimationState MyAnimationState = this.animation["Take 001"];
MyAnimationState.enabled = true;
MyAnimationState.time = PositionToTime(desiredPos);
this.animation.Sample();
MyAnimationState.enabled = false;
But when I read back the animation time (still in FixedUpdate) I get the same time for the whole frame.
This leads me to believe that the animation system is updated once per frame.
Can anybody confirm/deny this ?
Any suggestions on how improve this ?