ドキュメント

Unity Engine

Unity Engine

Intersect

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

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.