Limiting ragdoll limb movement/rotation

How would one limit the rotation of limbs in this example? Sometimes the limbs just rotate around their axis after falling to the ground.

1 Like

cc @Cedric

Hi @Mr_Anderson
I’m aware of this issue but didn’t find time yet. I think it deserves more control on angle limitation as well.

3 Likes

Yes, I really like this feature in BabylonJS. The ragdoll system is an amazing thing. I can’t wait to use it, but for now, it has its peculiarities. It would be so cool to skip writing animations and instead have physics take over when damage is dealt or the player dies. However, the bones start rotating only along the axes they are connected by, as if they were sausages without solid joints.I would’ve forgotten about the ragdoll altogether if not for another post on LinkedIn (by the way, someone has recently started seriously managing the LinkedIn account). This is my comment under the post:

“I really like how the ragdoll system is implemented, and I would like to learn how to make it so that when it’s activated, it maintains the bending constraints of the arms and legs. I’ve seen that constraints can be set for specific allowed angles on the rig’s skeleton. However, so far, I haven’t been able to make the character fall more naturally, like a human, rather than like an invertebrate.”

@Cedric Please, please, please, please. Maybe in next year? Hm?

I’m working on Constraint debug visualization. I think it would be a good fit with updated PG/Documentation for the ragdoll.
IIRC most of the code to set up the constraint is done but it lacks some infos on how to set it.

1 Like