# Sandbox.PhysicsBody.AddConeShape

## Overload 1

```csharp
PhysicsShape AddConeShape(Vector3 position, Rotation rotation, float height, float radius1, float radius2 = 0, int slices = 16)
```

Add a cone shape to this body.

### Parameters

- `position` (`Vector3`)
- `rotation` (`Rotation`)
- `height` (`float`)
- `radius1` (`float`)
- `radius2` (`float`), default `0`
- `slices` (`int`), default `16`

### Returns

`PhysicsShape`

## Overload 2

```csharp
PhysicsShape AddConeShape(Vector3 a, Vector3 b, float radiusA, float radiusB, int slices = 16)
```

Add a cone shape to this body.

### Parameters

- `a` (`Vector3`)
- `b` (`Vector3`)
- `radiusA` (`float`)
- `radiusB` (`float`)
- `slices` (`int`), default `16`

### Returns

`PhysicsShape`

Declared in [Sandbox.PhysicsBody](/api/Sandbox.PhysicsBody).
Assembly: `Sandbox.Engine`.
