About Store Forum Documentation Contact



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

Post: #16
RE: I am fed up with ragdoll problem
Hi,

Don't post anything for quite some time. I created application to test ragdoll. You can manipulate actor and joint parameters and switch into simulation mode. If have some time test it, submit errors if found any. Maybe shared some settings if found some good one. I want to improve it so any ideas will be helpfull. Instruction in README file.

https://drive.google.com/file/d/1fKUu0mk...sp=sharing
10-12-2021 09:14 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #17
RE: I am fed up with ragdoll problem
So I've been messing around with this lately, for the ones compiling the engine themselves.

Joint.cpp
CreateHinge inside of if(PxRevoluteJoint *hinge=PxRevoluteJointCreate body
Code:
if (body)
{
   hinge->setConstraintFlag(physx::PxConstraintFlag::ePROJECTION, body);
   hinge->setConstraintFlag(physx::PxConstraintFlag::ePROJECT_TO_ACTOR0, body);
   hinge->setProjectionLinearTolerance(10.00f);
   hinge->setProjectionAngularTolerance(DegToRad(10));
            
}

and CreateSpherical inside of if(PxD6Joint *spherical=PxD6JointCreate) body
Code:
if (body) {
   spherical->setConstraintFlag(physx::PxConstraintFlag::ePROJECTION, body);
   spherical->setConstraintFlag(physx::PxConstraintFlag::ePROJECT_TO_ACTOR0, body);
   spherical->setProjectionLinearTolerance(10.00f);
   spherical->setProjectionAngularTolerance(DegToRad(10));
}

I think it would probably be better with a separate bool for projection and velocity/angular settings.

in Ragdoll createTry
Code:
REP(T.bones()) {
             bone(i).actor._dynamic->setMaxDepenetrationVelocity(0.1);
             bone(i).actor._dynamic->setSolverIterationCounts(16, 8);
         }
before
Code:
// ignore
REPA(T)

Has helped stabilize it immensely, atleast it isn't exploding anymore(flying everywhere), and it doesn't seem to leave a super jittery popping on the neck/head bones, still not quite happy with it but atleast right now it is somewhat usable.
(This post was last modified: Yesterday 06:59 AM by Zervox.)
Yesterday 06:58 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #18
RE: I am fed up with ragdoll problem
Thanks for your efforts Zervox, it would be really awesome if people contribute to the source code smile
Today 01:48 PM
Find all posts by this user Quote this message in a reply
Post Reply