# ColliderShape.Sphere record

> A collider shape that's a sphere, centred on the collider's origin.

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

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

A [collider shape](/docs/api/collidershape) that's a sphere, centred on the collider's origin.

```csharp
new Collider(new ColliderShape.Sphere(0.25f), ["solid"])
```

## Members

### ColliderShape.Sphere (constructor)

```csharp
public ColliderShape.Sphere(float Radius)
```

Makes a sphere of `radius`.

### Radius (property)

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

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