- Home /
Question by
Pflobus · Dec 25, 2015 at 07:38 PM ·
javascriptrigidbodyarrayragdoll
Ragdoll Rigidbody Array?
I have a script in C# and need to convert it to Javascript, and it involves arrays with rigidbodies.
//Rigidbody[] bodies=GetComponentsInChildren<Rigidbody>(); --> C#
var bodies : Rigidbody[];
bodies = GetComponentsInChildren<Rigidbody>();//Error
for(var rb : Rigidbody in bodies){
rb.isKinematic=newValue;
}
Any help would be appreciated.
Comment
Best Answer
Answer by Pflobus · Dec 25, 2015 at 07:49 PM
SOLVED.... I forgot the period in front of ();
Your answer
![](https://koobas.hobune.stream/wayback/20220612053854im_/https://answers.unity.com/themes/thub/images/avi.jpg)