clean determination of if an object is a connected body

can someone please tell me if there is a clean way to determine if an object is being used by a joint components connected body field of another object by observing the object’s properties?

I am flipping between objects connected to said joint via script. and would like the object to behave differently if it is no longer connected.

I do know how to do this though a static var, or through a find and then gameobject query from what the find returns but i would much prefer to just query the object itself for a property that says “hey I’m being used as a connected body!”

regards
rob

I don’t think there is any way for an object to tell if something else is attached to it with a joint. However, the rigidbody class has a gameObject property - you could just call gameObject.SendMessage to call a function in the attached object when the joint is disconnected. (Not exactly what you want, I know.)

Thanks

of course…

thats quite interesting, it’ll do, obviously I could do that in an overloaded start function of the object that holds the joint component as well. which would meet my requirement.