- Home /
Question by
Fady-S · Aug 09, 2012 at 07:23 AM ·
missingspringjoint
Test for a Joint.connectedBody is missing in a script
Let's say we have a gameObject.rigidbody that is a connectedBody for say a SpringJoint.Then this gameObject is destroyed.Now the springJoint.connectedBody in the Inspector will display : Missing(Rigidbody). How to test for this in a script for example:
if( gameObject.GetComponent(SpringJoint).connectedBody==????)
null would not work.
Thanks.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613075415im_/https://answers.unity.com/themes/thub/images/avi.jpg)