기술 자료

Unity Engine

Download Unity

Unity Engine

GetContact(int)

Gets the contact point at the specified index.
읽는 시간 1분최근 업데이트: 하루 전

Definition

public ContactPoint2D GetContact(int index)

Parameters

index

The index of the contact to retrieve.

Returns

Type

Description

ContactPoint2DThe contact at the specified
index
.

Remarks

You can retrieve individual contacts for this collision by
index
. You can use Collision2D.contactCount to determine how many contacts are available.