Intersect
Check the intersection between this geometry and another.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
Intersect(PhysicsTransform, CircleGeometry, PhysicsTransform)
Check the intersection between this geometry and another.
public readonly PhysicsShape.ContactManifold Intersect(PhysicsTransform transform, CircleGeometry otherGeometry, PhysicsTransform otherTransform)
Parameters
The transform used to specify where this geometry is positioned.
The other geometry used to check intersection against.
The transform used to specify where the other geometry is positioned.
Returns
Type | Description |
|---|---|
| ContactManifold | The contact manifold fully detailing the intersection. |
Intersect(PhysicsTransform, CapsuleGeometry, PhysicsTransform)
Check the intersection between this geometry and another.
public readonly PhysicsShape.ContactManifold Intersect(PhysicsTransform transform, CapsuleGeometry otherGeometry, PhysicsTransform otherTransform)
Parameters
The transform used to specify where this geometry is positioned.
The other geometry used to check intersection against.
The transform used to specify where the other geometry is positioned.
Returns
Type | Description |
|---|---|
| ContactManifold | The contact manifold fully detailing the intersection. |
Intersect(PhysicsTransform, PolygonGeometry, PhysicsTransform)
Check the intersection between this geometry and another.
public readonly PhysicsShape.ContactManifold Intersect(PhysicsTransform transform, PolygonGeometry otherGeometry, PhysicsTransform otherTransform)
Parameters
The transform used to specify where this geometry is positioned.
The other geometry used to check intersection against.
The transform used to specify where the other geometry is positioned.
Returns
Type | Description |
|---|---|
| ContactManifold | The contact manifold fully detailing the intersection. |