PhysX icon indicating copy to clipboard operation
PhysX copied to clipboard

Is there any guide to scale a joint ?

Open momadacoding opened this issue 3 years ago • 2 comments
trafficstars

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?

momadacoding avatar Sep 08 '22 09:09 momadacoding

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).

preist-nvidia avatar Sep 08 '22 09:09 preist-nvidia

Do I need to scale the rigidbody's mass and(or) Center Mass local pose ?

The shape also needs to scale definitely, I guess.

momadacoding avatar Sep 09 '22 06:09 momadacoding