joint=sagkalca.gameObject.GetComponent<ConfigurableJoint>().angularXDrive;…
- User
joint=sag_kalca.gameObject.GetComponent().angularXDrive; joint.positionSpring = 0f; joint = sag_diz.gameObject.GetComponent().angularXDrive; joint.positionSpring = 0f; joint = sol_kalca.gameObject.GetComponent().angularXDrive; joint.positionSpring = 0f; joint = sol_diz.gameObject.GetComponent().angularXDrive; joint.positionSpring = 0f; hata ne burda
- Assistant
Buradaki temel hata,
angularXDriveproperty'sinden elde edilenJointDrivestruct'ının bir kopyasını almanız ve onunpositionSpringdeğerini değiştirmeniz, ancak bu değeri tekrar ConfigurableJoint'e atamamanızdır.