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?
Rotate a ragdoll using forces?
Asked Answered
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.
© 2022 - 2024 — McMap. All rights reserved.
Can you post the code used to apply the torque? Usually people use joint motors I believe.
– Lundell