PolygonAndCapsule(PolygonGeometry, PhysicsTransform, CapsuleGeometry, PhysicsTransform)
Check the intersection between Polygon and Capsule geometries.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public static PhysicsShape.ContactManifold PolygonAndCapsule(PolygonGeometry geometryA, PhysicsTransform transformA, CapsuleGeometry geometryB, PhysicsTransform transformB)
Parameters
The first geometry to use.
The transform used to specify where the first geometry is positioned.
The second geometry to use.
The transform used to specify where the second geometry is positioned.
Returns
Type | Description |
|---|---|
| ContactManifold | The contact manifold fully detailing the intersection. |