About Store Forum Documentation Contact
Donations:
140$/mo



Post Reply 
I am fed up with ragdoll problem
Author Message
tipforeveryone Offline
Member

Post: #1
I am fed up with ragdoll problem
It took me too much time to optimize ragdoll physic for my characters
Regardless how much effort, ragdoll still dance like hell

Is there any a real GUIDE for a smooth ragdoll ? or any note any suggestion to solve 'break dance' ragdoll

Why physic works so well but ragdoll.
Look at this...
https://youtu.be/LWYIxVRMvXw
04-04-2021 11:29 AM
Find all posts by this user Quote this message in a reply
Argoon Offline
Member

Post: #2
RE: I am fed up with ragdoll problem
If the case, make sure the ragdoll Collison proxies don't collide with each other, only the world this is what's probably causing the ragdoll spasms.

Btw disabling self collision for the ragdoll, will also have a nasty side effect that is the ragdoll parts will interpenetrate each other, so you need to make sure to put good movement limits in the ragdoll joints to prevent that.
04-04-2021 02:17 PM
Find all posts by this user Quote this message in a reply
KrysleQuinsen Offline
Member

Post: #3
RE: I am fed up with ragdoll problem
Another idea is to add more damping or gradually increase it when the ragdoll started on either ragdoll or ragdoll's bone actor, so it will move slower, heavier and less likely to dance, also less likely to get launched when they piled up or walking on them.
(This post was last modified: 04-06-2021 02:55 AM by KrysleQuinsen.)
04-06-2021 02:53 AM
Find all posts by this user Quote this message in a reply
Dwight Offline
Silver Supporter

Post: #4
RE: I am fed up with ragdoll problem
I haven't look at the source code for it, but what is the effect of gravity on the ragdoll? What happens if you double the gravity?
04-06-2021 09:46 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: I am fed up with ragdoll problem
Hi,
Ragdoll creation is here:
https://github.com/Esenthel/EsenthelEngi...l.cpp#L137
Which uses joints here:
https://github.com/Esenthel/EsenthelEngi...t.cpp#L474
createBodyHinge
createBodySpherical
Later here and here:
https://github.com/Esenthel/EsenthelEngi...t.cpp#L195
https://github.com/Esenthel/EsenthelEngi...t.cpp#L238
You could experiment with modifying the source code.
I remember ragdoll worked more stable in older physx versions, maybe engine ragdoll/joint codes need to be tweaked for the newer version. But I'm too busy with other things at the moment to look into that now.
04-11-2021 09:16 AM
Find all posts by this user Quote this message in a reply
Post Reply