- Home /
Mecanim - 4.3 deltaPosition Bug
I've been using three layers in my overall Animator Controllers in older versions.
But when I checked via OnAnimator callback in Unity 4.3,
Only base layer's root motion works.
And the others' deltaPosition is always Vector3.zero.
I was using generic rig and this problem occurs even I made a brand new controller with same animation.
Is there anyone who knows about this issue?
Or is this certainly a bug?(Which is critical to me QQ)
I'm having a similar issue in 4.3.4. Did you ever find a fix?
Answer by bacair_rg · Mar 31, 2014 at 10:02 AM
Turns out that if you add a full-body layer mask then root motion will be applied properly on override layers. This wasn't necessary in 4.2 but is in 4.3.
thanks! Just for info: I had to remove these lines from my script, then anim.deltaPosition started giving values again (ins$$anonymous$$d of 0,0,0)
anim.SetLayerWeight(1, 1f); anim.SetLayerWeight(2, 1f);
Your answer
Follow this Question
Related Questions
Root Motion On Slow Animations 0 Answers
Using root motion scripting for specific animations 1 Answer
Apply Root Motion with Animator and Animation Made INSIDE Unity 0 Answers
How does the Animator drive Rigidbody with root motion (in detail)? 1 Answer
Mecanim x and z plane root motion not working when importing .fbx, but works with .blend 2 Answers