---
title: CapsuleAndPolygon(CapsuleGeometry, PhysicsTransform, PolygonGeometry, PhysicsTransform)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/u2d/physics/physicsquery/capsuleandpolygon
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/u2d/physics/physicsquery/capsuleandpolygon.md
last_updated: 2026-10-20
generated_at: 2026-11-04T05:08:22.160Z
locale: en-us
---

# CapsuleAndPolygon(CapsuleGeometry, PhysicsTransform, PolygonGeometry, PhysicsTransform)

> Check the intersection between Capsule and Polygon geometries.

## Definition

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

```csharp
public static PhysicsShape.ContactManifold CapsuleAndPolygon(CapsuleGeometry geometryA, PhysicsTransform transformA, PolygonGeometry geometryB, PhysicsTransform transformB)
```

### Parameters

**** (\[CapsuleGeometry]\(/engine/7000.0/script-reference/unity/u2d/physics/capsulegeometry)): The first geometry to use.**** (\[PhysicsTransform]\(/engine/7000.0/script-reference/unity/u2d/physics/physicstransform)): The transform used to specify where the first geometry is positioned.**** (\[PolygonGeometry]\(/engine/7000.0/script-reference/unity/u2d/physics/polygongeometry)): The second geometry to use.**** (\[PhysicsTransform]\(/engine/7000.0/script-reference/unity/u2d/physics/physicstransform)): The transform used to specify where the second geometry is positioned.

### Returns

| Type                                                                                                 | Description                                                                                                                                                  |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ContactManifold](/engine/7000.0/script-reference/unity/u2d/physics/physicsshape/contactmanifold.md) | The contact manifold fully detailing the intersection. Its normal points from the first geometry to the second, and its points are listed in the same order. |
