Hy,
I am working on a football game in 2D, with two players. I want that the player can rotate his right leg to shoot at the goal.
So I created a sprite (called “Footballer”) which contains the body and the left leg, and a child sprite for the right leg. I added a Rigidbody2D to the first (to move the footballer), and to the second (I wanted to rotate the leg with the “angularVelocity” of rigidbody and not with the “transform” object, because I supposed that it interract better with game physics and collisions).

But it doesn’t work :
- if the leg rigidbody is dynamic, the leg is not fixed to the body
- if the leg rigidbody is kinematic, the head of a footballer can’t collide the leg of an other
- if the leg is static, the leg seems to be fixed at a global point (not a local)
So I want to know if there is a way which works to use “angularVelocity” on the leg, or if I have to use the “transform” object.
Thank you in advance for your answers.