Version: 2023.2
言語: 日本語
public void SetSeparation (int i, float separation);

パラメーター

i Index of the contact point.
separation The separation at a contact point.

説明

Set 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.