Rotate a ragdoll using forces?
Asked Answered
M

1

0

Applying a rotational force to the rigidbody attached to the spine or hips has no effect. Applying a force works as expected… but applying torque has no effect. How can I rotate a ragdoll through forces?

Mutualize answered 2/7 at 10:3 Comment(1)

Can you post the code used to apply the torque? Usually people use joint motors I believe.

Lundell
M
0

Thank you @ceandros for pointing me in the right direction!

I was able to rotate my ragdoll by adding a Configurable Joint to the hips of the ragdoll. Then setting the targetAngularVelocity of the joint. There are also many other useful items for controlling a ragdoll with this joint.

Note:

You must set a value for angular drive damper, other than zero, for targetAngularVelocity to work.

Mutualize answered 2/7 at 8:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.