Why it occurs with the Joints?

Just did a search for featherstone. Just thought i'd share this interesting link.
Looks like this featherstone algorithm really is complicated!
http://www.thyrix.com/documentation/fea ... method.php
Mike
A while back, I implemented a version of Featherstone's algorithm in Box2D_Lite. It works well, but the performance suffers and you lose the ability to create and destroy individual joints at runtime.

You can try it here:

http://www.gphysics.com/files/Box2Dj_preview.zip
Thanks! I'd like to try it.
It gave a compile error in
Body::ApplyImpulse
Body** bodies = world->bodies;
Mike
I posted the wrong file. Try the new link.
Hello,

Sorry to bring up such an old thread but I was recently implementing a ragdoll using Farseer using fixtures & joints and found myself wishing there was a Featherstone implementation available. After searching around I found this old thread and was hoping to take a look at the zip with the version of Featherstone's algorithm mentioned here, with the idea of possibly updating it and/or porting to Farseer. The zip link is dead though - any chance this code might still be around somewhere?

Thanks-
You should be able to get a ragdoll working well with the latest code. There as a bug in the revolute joint limit that I fixed recently.

Getting into Featherstone stuff is not the answer.

Feel free to post a testbed version of your ragdoll if you are still having trouble.
Ragdoll is working decently but the main thing is that it never seems to stabilize and go to sleep, causing unpredictable ragdoll crawl on the ground. I suppose I probably just need to tune the settings to get the behavior I need; was hoping to see if the Featherstone stuff might help out with that. 12 joints in use, btw.

I pulled over your recent revolute joint changes into Farseer and saw a nice performance improvement due to the code no longer calling _tree.Rebalance(). I'm curious what happened there - was that call to Rebalance unnecessary or was something else changed to make it no longer required? I only ported revs 166 and 167; everything seems to work fine from what I can tell so now I'm wondering if there was another change list I needed to pull over to make the removal of the Rebalance call work as intended.

Thanks for any insights. Really digging what you've done here, looking forward to learning more.
I plan some more revolute changes to improve ragdolls. Try to make the limbs lighter as you go out from the torso. The ragdolls I've tested lately are quite stable and go to sleep easily. Also, make sure there are no internal contact points fighting with the joints.

The dynamic tree now uses AVL style rotations during insertion and deletion, so it is always balanced.
Thanks for the tips. Looking forward to seeing the revolute changes. I have ragdoll behavior working adequately for now but there's definitely room for improvement (probably with my tuning more than anything, to be honest).
One thing people often miss with ragdolls is to use joint friction. You can achieve this by enabling the motor with a zero speed and some small maximum torque. I'll try to get an example ragdoll in the testbed soon.

Original thread: https://box2d.org/forum/viewtopic.php?t=390