[Clone] A little confuse about The Walking Pet's physics simulation

Hello everyone, now I’m learning Unity by cloning as many games as I can.

However, when I decide to clone “The Walking Pet”, I have a big trouble. The animal’s feet can’t keep on the ground, and they just slide away, the character just stays at the same position. .

Any idea how to fix this problem?

This is my project file. I hope this will make my question is more obvious.

Thank you very much.

2260258–151157–New Unity Project.rar (149 KB)

Hi, use rigidbodies2d and hinge joints to connect body and legs. You will need 2 hinge joints 2d on body to connect to legs and one on each leg to connect to body. Also other parts of character must be connected to body with hinge joints maybe use motor to simulate some parts. For legs movement use addtorque. You will need to balance character parts mass.

And one more thing a forgot: use Physics2D.IgnoreCollision to prevent legs collision!

Hello EveryOne,
I wanted to start trainning on unity, clonning the pet game is so interesting and challenging, but i’am confused too about balancing the charachter when moving ! if anyOne could help, it would be awesome.
Thank you !!

hello golemsmk ,
do you have fixed you problem ,i hava the same problem,and i have try the way by alexey but it seems not work