# Sandbox.PhysicsBody.AddSphereShape

## Overload 1

```csharp
PhysicsShape AddSphereShape(Vector3 center, float radius, bool rebuildMass = True)
```

Add a sphere shape to this body.

### Parameters

- `center` (`Vector3`): Center of the sphere, relative to [Sandbox.PhysicsBody.Position](/api/Sandbox.PhysicsBody/Position) of this body.
- `radius` (`float`): Radius of the sphere.
- `rebuildMass` (`bool`), default `True`: Whether the mass should be [recalculated](/api/Sandbox.PhysicsBody/RebuildMass) after adding the shape.

### Returns

`PhysicsShape`: The newly created shape, if any.

## Overload 2

```csharp
PhysicsShape AddSphereShape(in Sphere sphere, bool rebuildMass = True)
```

Add a sphere shape to this body.

### Parameters

- `in sphere` (`Sphere`)
- `rebuildMass` (`bool`), default `True`

### Returns

`PhysicsShape`

Declared in [Sandbox.PhysicsBody](/api/Sandbox.PhysicsBody).
Assembly: `Sandbox.Engine`.
