Bodyturn - Legs rotating in the wrong direction

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Gaston
Posts: 77
Joined: Tue Jan 03, 2017 11:24 am

Bodyturn - Legs rotating in the wrong direction

Post by Gaston »

Hey forum,
I've maked a bodyturn. If I turn the character to the left all works fine with the legs.
If I turn the character to the right and lift the traget bone of the foot the knee rotates in the wrong direction.
How can I prevent this?
User avatar
Greenlaw
Posts: 9259
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Bodyturn - Legs rotating in the wrong direction

Post by Greenlaw »

It would help if you post a pic of exactly what's happening, but I'll try to make a couple of guesses.

The error is quite possibly a combination of these two.

If the lower leg is bending the knee in the wrong direction, you need to change the 'preferred' IK direction. To do this, select the Transform Bone tool, select the lower leg bone, and slowly drag 'rotate' it in the direction that the leg is currently bending towards (that might seem counter-intuitive but it's correct.) At some point, knee should pop into the opposite direction. As in the above, you'll probably want to keyframe the rotation in the frame before the flip. If the animation is slow, you may also need to finesse the transition by repositioning the body's hip/root bone or the leg bone lengths. Or, just speed up the animation to where nobody will notice the pop.

If the leg artwork and bones have flipped correctly, and you're using a target for the ankle, and you probably have Independent Angle enabled on the foot, the foot is not going to flip 'correctly' because of the Independent Angle. You'll need to manually rotate the foot to correct this. Just remember to keyframe the foot rotation in the frame before the frame where the flip occurs.

The first point should address what you've described but if you used a typical leg setup, the second point will probably also need to be addressed.

These are not bugs, btw. It's just how it works. I sometimes have to take similar actions even when working in certain 3D animation programs.

Hope this helps. If the above doesn't apply, please post more info and pics if possible.
User avatar
Greenlaw
Posts: 9259
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Bodyturn - Legs rotating in the wrong direction

Post by Greenlaw »

BTW, most of the time I won't bother putting leg flips inside a body turn SBD Action because I often find that during animation, I may actually want the leg to flip sooner or later than what the Action pre-determines for the rig, or I may possibly not want the leg to flip at all.

Instead, I'll create separate leg turn SBD controls that I can use when I want to turn the legs, and use them to turn the legs as far as I need to, independently of the body turn SBD. This setup can offer a wider range of posing possibilities than what a single 'do it all' body turn SBD might do.

Just something to think about.
Last edited by Greenlaw on Mon Apr 17, 2017 11:09 pm, edited 2 times in total.
Gaston
Posts: 77
Joined: Tue Jan 03, 2017 11:24 am

Re: Bodyturn - Legs rotating in the wrong direction

Post by Gaston »

Wow, thanks a lot for your detailed answer. :D
Gaston
Posts: 77
Joined: Tue Jan 03, 2017 11:24 am

Re: Bodyturn - Legs rotating in the wrong direction

Post by Gaston »

Oh no,
I'm a little bit confused. The leg flips but I don't know how I maked this. There's no keyframe.
Could you explain this easily for me please?
Thanks a lot.

View My Video
Gaston
Posts: 77
Joined: Tue Jan 03, 2017 11:24 am

Re: Bodyturn - Legs rotating in the wrong direction

Post by Gaston »

Here's my problem: If I turn the body to the right the angle of the leg is ok. If I turn the body to the left the angle should turn.
But that doesn't work. So, what should I do to change the angle of the knee when I move the target bone or the smart bone of the body? :(

Image
User avatar
Greenlaw
Posts: 9259
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Bodyturn - Legs rotating in the wrong direction

Post by Greenlaw »

You need to change the preferred IK direction when the leg rig flips. The preferred IK direction can be influenced by a small bend in the joint. You can that by changing the bend direction.

To do this while using Target bones, select the Transform Bone tool, then click on lower leg bone and drag it in the direction the knee is pointing. The knee will change direction when you've crossed the IK threshold. When you're using a target bone, the knee should eventually 'pop' in the opposite direction.

Be sure to keyframe the rotation angle of the leg bone in the frame before the flip, otherwise, the preferred IK direction may be affected for the preceding frames.

Optional suggestion: The sudden 'pop' is fine for very snappy animations, but for slower, smoother motions, you'll probably want to make gradual changes in the hip position and/or leg bone lengths, as described in the earlier post.
Last edited by Greenlaw on Tue Apr 18, 2017 10:21 pm, edited 1 time in total.
Gaston
Posts: 77
Joined: Tue Jan 03, 2017 11:24 am

Re: Bodyturn - Legs rotating in the wrong direction

Post by Gaston »

Hello Greenlaw,
thank you for your anwser. I've made a mistake all the time: I've moved the anker (start) point of the lower leg bone instead of only select it and move outside of the bone.
:oops: Intuitive I've searched a point or a switch in the bone tools to change the IK direction. The solution is too easy to maked it right :wink: SmithMicro should install a switch for this :idea:

Here is a video tutorial that makes it clearly:
https://www.youtube.com/watch?v=Utvx0zOzIWI

Puuh, a long way. Now, it works :D
Post Reply