# otherRigidbody

> The other Rigidbody2D involved in the collision with the _rigidbody.

## Definition

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

```csharp
public Rigidbody2D otherRigidbody { get; }
```

### Remarks

This may be null if the [\_otherCollider](/engine/6000.7/script-reference/unityengine/collision2d/othercollider.md) is not attached to a [Rigidbody2D](/engine/6000.7/script-reference/unityengine/rigidbody2d.md).

Additional Resources: [Collider2D](/engine/6000.7/script-reference/unityengine/collider2d.md), [Rigidbody2D](/engine/6000.7/script-reference/unityengine/rigidbody2d.md)
