# Sandbox.HitboxSetBuilder.AddCapsule

```csharp
ModelHitboxBuilder AddCapsule(string name, string boneName, Capsule capsule)
```

Adds a capsule hitbox in bone-local space.

### Parameters

- `name` (`string`): The hitbox name.
- `boneName` (`string`): The bone the hitbox follows.
- `capsule` (`Capsule`): The capsule relative to the bone.

### Returns

`ModelHitboxBuilder`: A builder for the new hitbox.

Declared in [Sandbox.HitboxSetBuilder](/api/Sandbox.HitboxSetBuilder).
Assembly: `Sandbox.Engine`.
