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