Rotate a ragdoll using forces?
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?
Can you post the code used to apply the torque? Usually people use joint motors I believe.
All it is... is I get a reference to the rigidbody on the part of the ragdoll I'm trying to rotate. Then I use rigidbody.AddTorque(torqueForce, Space.Self) in the FixedUpdate loop.
I will look into joint motors, thanks!
$$anonymous$$ake sure to post your solution, your post is already high up in the Google searches
Answer by joshuapeacock · Jan 08, 2020 at 10:00 AM
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.