# Capsule.FromHeightAndRadius

```csharp
static Capsule FromHeightAndRadius(float height, float radius)
```

Creates a capsule where Point A is radius units above the ground and Point B is height minus radius units above the ground.

### Parameters

- `height` (`float`)
- `radius` (`float`)

### Returns

`Capsule`

Declared in [Capsule](/api/Capsule).
Assembly: `Sandbox.System`.
