PhysX Joints for ragdoll

I’m having trouble understanding how to configure joints in PhysX… particularly the localFrame0 and localFrame1…
I create the rigidBodyDynamic actors in the proper place in world space and then connect each one to its parent using a spherical joint. But cant seem to figure out these joint setting… the type of joint i’m trying to achieve is basically like this…

Parent actor should be also the anchor point for the child actor joint and so on… (this is for simple a ragdoll simulation)