ドキュメント

Unity Engine

Unity Engine

Intersect

Check the intersection between this geometry and another.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.