# CapsuleGeometry

> Contains the basic geometric shape of a capsule.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.LowLevelPhysics](/engine/6000.7/script-reference/unityengine/lowlevelphysics.md)
* **Assembly:** UnityEngine.PhysicsModule
* **Implements:** [IGeometry](/engine/6000.7/script-reference/unityengine/lowlevelphysics/igeometry.md)

```csharp
public struct CapsuleGeometry : IGeometry
```

## Remarks

When Unity retrieves the geometry from the [CapsuleCollider](/engine/6000.7/script-reference/unityengine/capsulecollider.md), the [\_direction](/engine/6000.7/script-reference/unityengine/capsulecollider/direction.md) is not included. For this reason, you should assume the direction is always along the X axis.

## Constructors

| Constructor                                                                                                                         | Description                                          |
| ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| [CapsuleGeometry(System.Single,System.Single)](/engine/6000.7/script-reference/unityengine/lowlevelphysics/capsulegeometry/ctor.md) | Create a capsule shape with the provided parameters. |

## Properties

| Property                                                                                                    | Description                                                                                |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [GeometryType](/engine/6000.7/script-reference/unityengine/lowlevelphysics/capsulegeometry/geometrytype.md) | Returns the geometry type of this shape, which is CapsuleGeometry.                         |
| [HalfLength](/engine/6000.7/script-reference/unityengine/lowlevelphysics/capsulegeometry/halflength.md)     | The distance from the center of the shape to the center of either half-sphere at the caps. |
| [Radius](/engine/6000.7/script-reference/unityengine/lowlevelphysics/capsulegeometry/radius.md)             | The radius of the half-sphere at either cap of the capsule.                                |
