# Sandbox.PhysicsJointBuilderExtensions.WithCollision

```csharp
static T WithCollision(T b, bool v)
```

Sets whether the connected bodies can collide.

### Parameters

- `b` (`T`): The joint builder.
- `v` (`bool`): Whether collision is enabled.

### Returns

`T`: The joint builder.

Declared in [Sandbox.PhysicsJointBuilderExtensions](/api/Sandbox.PhysicsJointBuilderExtensions).
Assembly: `Sandbox.Engine`.
