Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.

otherGeometry

The other geometry used to check intersection against.

otherTransform

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

Returns

Type

Description

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

otherGeometry

The other geometry used to check intersection against.

otherTransform

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

Returns

Type

Description

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

otherGeometry

The other geometry used to check intersection against.

otherTransform

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

Returns

Type

Description

ContactManifoldThe contact manifold fully detailing the intersection.