# Validate()

> Get a validated version of the geometry, if possible.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public readonly CapsuleGeometry Validate()
```

### Returns

| Type                                                                                    | Description                                                                                                                                                                    |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [CapsuleGeometry](/engine/6000.5/script-reference/unity/u2d/physics/capsulegeometry.md) | A validated copy of the geometry with an updated length and radius if required. See [\_isValid](/engine/6000.5/script-reference/unity/u2d/physics/capsulegeometry/isvalid.md). |
