# ColliderShape.Cylinder record

> A collider shape that's a cylinder with flat ends, centred on the collider's origin and running along its Y axis.

Namespace `EvilEngine.Formats.Collision`, assembly `EvilEngine.Formats`. Engine commit 4ff877b1.

```csharp
public sealed record ColliderShape.Cylinder : ColliderShape
```

A [collider shape](/docs/api/collidershape) that's a cylinder with flat ends, centred on the collider's origin and running along its Y axis.

```csharp
new Collider(new ColliderShape.Cylinder(0.9f, 0.3f), ["solid"])
```

## Members

### ColliderShape.Cylinder (constructor)

```csharp
public ColliderShape.Cylinder(float Height, float Radius)
```

Makes a cylinder of `height` and `radius`.

### Height (property)

```csharp
public float Height { get; init; }
```

The cylinder's whole length from end to end, in metres. It must be above 0 for the collision to be written.

### Radius (property)

```csharp
public float Radius { get; init; }
```

The cylinder's radius in metres. It must be above 0 for the collision to be written.
