Version: 2023.1
언어: 한국어
public float GetSeparation (int i);

파라미터

i Index of the contact point.

반환

float The separation at a contact point.

설명

Get the separation value at a particular contact point in this contact pair.

Separation shows the distance between the colliders at this contact point. Negative means the colliders overlap each other. Positive means the colliders are still separated.

Note that the physics engine starts generating contact pairs when the distance between is lower than the sum of their respective Collider.contactOffset.