Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

otherShape

The other shape used to check intersection against.

Returns

Type

Description

ContactManifoldThe 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.

otherShape

The other shape used to check intersection against.

otherTransform

The transform used to specify where the other shape is positioned.

Returns

Type

Description

ContactManifoldThe contact manifold fully detailing the intersection.