文档

Unity Engine

Unity Engine

Intersect

Check the intersection between this geometry and another.
阅读时间2 分钟最后更新于 3 天前

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. Its normal points from this geometry to the other, and its points are listed in the same order.

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. Its normal points from this geometry to the other, and its points are listed in the same order.

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. Its normal points from this geometry to the other, and its points are listed in the same order.

Intersect(PhysicsTransform, SegmentGeometry, PhysicsTransform)

Check the intersection between this geometry and another.
public readonly PhysicsShape.ContactManifold Intersect(PhysicsTransform transform, SegmentGeometry 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. Its normal points from this geometry to the other, and its points are listed in the same order.