SegmentAndPolygon(SegmentGeometry, PhysicsTransform, PolygonGeometry, PhysicsTransform)
Check the intersection between Segment and Polygon geometries.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static PhysicsShape.ContactManifold SegmentAndPolygon(SegmentGeometry geometryA, PhysicsTransform transformA, PolygonGeometry 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. |