# connectedBody

> A reference to another rigidbody this joint connects to.

## Definition

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

```csharp
public Rigidbody connectedBody { get; set; }
```

### Remarks

If not set then the joint connects the object to a fixed point in world space.

Unity does not support connecting a joint to a [Rigidbody](/engine/6000.7/script-reference/unityengine/rigidbody.md) in a different [Scene](/engine/6000.7/script-reference/unityengine/scenemanagement/scene.md) that is using a local physics Scene. If a joint is connected to a [Rigidbody](/engine/6000.7/script-reference/unityengine/rigidbody.md), and then that [Rigidbody](/engine/6000.7/script-reference/unityengine/rigidbody.md) is moved to a [Scene](/engine/6000.7/script-reference/unityengine/scenemanagement/scene.md) that uses [LocalPhysicsMode.Physics3D](/engine/6000.7/script-reference/unityengine/scenemanagement/localphysicsmode/physics3d.md), then the joint is automatically disconnected from the [Rigidbody](/engine/6000.7/script-reference/unityengine/rigidbody.md).

Additional Resources: [Scene](/engine/6000.7/script-reference/unityengine/scenemanagement/scene.md), [LocalPhysicsMode](/engine/6000.7/script-reference/unityengine/scenemanagement/localphysicsmode.md)
