How can I manipulate RagDoll with farseer physics in Silverlight?

I made a ragdoll similar to the one in this demo . This rag doll will be used for a turn-based game based on turns, where physics will be used for animations such as damaging the character, death, falling, etc.

What I'm thinking at the moment is how it should be done if I keep the rag doll with my head in the background (leaving the body hanging) and basically throw around my body parts to simulate stamping, etc. (as shown in Fig. 1), or strengthen the joints and statically rotate and move body parts for the actions taken (as shown in Fig. 2), and when it comes to a dying character (or similar action), just loosen the joints and let the rag the doll will fall. Or is there a better way to do this?

I am new to Farsi physics and don’t even know if even what I mentioned is possible or pretty hard to do.

Illustration http://img3.imageshack.us/img3/8681/charactermovementrg5.jpg

Note that the red line in the figures represents the character’s hand

+3
source share
4 answers

Not sure if ragdolls is the way to go here if you want animations. But if you really want to use them, I would fix my legs on the floor and have some springs of rotation in the joints, so when the forces are not applied, the body is upright. Then, if he gets hit, he will bend a little, but after that he should return to the waiting state (you may have to help him on his way back, for example, apply some forces / torques until he returns to where you want him).

, , spring ( , ). , . , . , , . , , .

, , , , .

+1

, , , .

0

, RotateTransform .

0

- .

0

Source: https://habr.com/ru/post/1703444/


All Articles