# ShapeAndShape(PhysicsShape, PhysicsTransform, PhysicsShape, PhysicsTransform)

> Check the intersection between two shapes ( PhysicsShape ).

## Definition

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

```csharp
public static PhysicsShape.ContactManifold ShapeAndShape(PhysicsShape shapeA, PhysicsTransform transformA, PhysicsShape shapeB, PhysicsTransform transformB)
```

### Parameters

**** (\[PhysicsShape]\(/engine/6000.5/script-reference/unity/u2d/physics/physicsshape)): The first shape to use.**** (\[PhysicsTransform]\(/engine/6000.5/script-reference/unity/u2d/physics/physicstransform)): The transform used to specify where the first geometry is positioned.**** (\[PhysicsShape]\(/engine/6000.5/script-reference/unity/u2d/physics/physicsshape)): The second shape to use.**** (\[PhysicsTransform]\(/engine/6000.5/script-reference/unity/u2d/physics/physicstransform)): The transform used to specify where the second geometry is positioned.

### Returns

| Type                                                                                                 | Description                                            |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [ContactManifold](/engine/6000.5/script-reference/unity/u2d/physics/physicsshape/contactmanifold.md) | The contact manifold fully detailing the intersection. |
