- Home /
Question by
Laiken · Aug 24, 2020 at 11:28 AM ·
animationanimatormecanimbug-perhaps
Is Animator.SetBoneLocalRotation working as intended for the hips?
I believe 'Animator.SetBoneLocalRotation' should change the local rotation of a bone to a given value. And it works like that, except for the hips.
Animator anim;
private void Start()
{
anim = GetComponent<Animator>();
}
private void OnAnimatorIK(int layerIndex)
{
anim.SetBoneLocalRotation(HumanBodyBones.Hips, Quaternion.identity);
}
I believe this was supposed to lock the hips local rotation on 0/0/0 correct? It's affecting the hips rotation somehow but not as expected. It's also not getting locked to a particular rotation. Can anyone confirm this if this is a bug? Maybe I'm missing something?
Comment
Your answer
Follow this Question
Related Questions
Is there a way to change the WrapMode of all Animations in a Mecanim Animator? 1 Answer
Imported model partially disappears 2 Answers
Can the mecanim animators Controller var be set in code? 1 Answer
Accessing AnimationState in Animator 0 Answers
How to stop mesh disappearing during Animator state transition blend time? 1 Answer