- Home /
How do you disable the usegravity for a ragdoll and specific childbones with a script?
I am making a character controller with a ragdoll. I thought this could be the perfect way to make a character controller with a skeleton, and not a capsule, so far it works, but I need to disable the gravity of each bone of the ragdoll to add a general gravity for all the armature. I know how to do all of this. But I dont know a script that disables specific bones or all of the armatures gravity component. Bit remember, I dont want it to be kinematic. I want it to remain non kinematic. I have done it manually and it works, but it will be more awesome if I could disable it with a script, i could do wonders.
Here is a video of what I have done so far, I just need to add the animations, the Ik and disable gravity.
Please help.
Your answer
![](https://koobas.hobune.stream/wayback/20220613174650im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Ragdoll help 1 Answer
Disable a script on collision 2 Answers
How to disable Rigidbody component completely 6 Answers
(C#)How To Disable Gravity From Script? 4 Answers
Problems with ragdolls and no gravity 0 Answers