# collideConnected

> Can the joint collide with the other Rigidbody2D object to which it is attached?

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

> **Warning:**
>
> **Removed.** Joint2D.collideConnected has been obsolete. Use Joint2D.enableCollision instead
>
> **Upgrade to** [Joint2D.enableCollision](/engine/6000.5/script-reference/unityengine/joint2d/enablecollision.md)

```csharp
public bool collideConnected { get; set; }
```

### Remarks

Additional Resources: [Rigidbody2D](/engine/6000.5/script-reference/unityengine/rigidbody2d.md) class, [Joint2D.connectedBody](/engine/6000.5/script-reference/unityengine/joint2d/connectedbody.md).
