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