Strange Leg Behavior when Foot IK is activated

Hi,
When I activate this foot IK, the legs of the model get too spread. Even when he is walking they move in that spread position.
What could be the problem?

@akuno

Hi,

IIRC you have to create planted feet using scripting (OnAnimatorIK method).

I don’t think you can get away by just checking “foot IK” if you are trying to create planted feet - then again, you didn’t specify that very clearly if that is your intention.

Anyway, only info about foot IK check box that I know of is in Unity blog:

"IK Solver
The main goal of IK Solver on arms and legs is to reach the original hands and feet position and orientation optionally found in the Muscle Space. This is what happens under the hood for feet when “Foot IK” toggle is enabled in a Mecanim Controller State."

So I’m not exactly sure about function of that button, can’t remember or haven’t used it, it might be that it only modifies pose relative to original pose, but I think it doesn’t do foot planting in itself. Maybe someone else who knows better can answer better.

I’ve just done planted feet once or twice, used OnAnimatorIK and manually placed the feet using raycasting, and there are premade assets available for this, free and paid.

2 Likes

Thanks for the reply, The issue fixed itself, at least it seems. When I opened the project today its working properly.