- Home /
Question by
medofox321 · Nov 24, 2021 at 12:41 PM ·
jointsconfigurablejoint
ConfigurableJoint.angularXDrive.positionSpring.Equals(100) not working
I tried to set configurablejoint's angularXDrive (doesnt work with YZ too) to 100 through script but it doesnt seem to work, am i doing this wrong? what is the right way to do it?
var joints = GetComponentsInChildren<ConfigurableJoint>();
foreach (ConfigurableJoint cj in joints)
{
cj.angularXDrive.positionSpring.Equals(100);
Debug.Log(cj.angularXDrive.positionSpring);
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613045743im_/https://answers.unity.com/themes/thub/images/avi.jpg)