Is there any guide to scale a joint ?
haolly opened this issue · 2 comments
haolly commented
I have created a normal ragdoll which use D6Joint, and now I want to make it work the same avatar which varying scale size.
Is there any document I can reference?
preist-nvidia commented
Hi - you should be able to just scale the local pose position of the joint and it should work. I.e. have a look at setLocalPose
E.g. local pose position of joint on actor with scale 1 is PxVec3(0.5, 1.0, 2.0)
and you scale with a factor of 5, you should update to 5.0 * PxVec3(0.5, 1.0, 2.0)
.
haolly commented
Do I need to scale the rigidbody's mass and(or) Center Mass local pose ?
The shape also needs to scale definitely, I guess.