Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

Collider.contactOffset

public float contactOffset;

Description

Contact offset value of this collider.

Colliders whose distance is less than the sum of their contactOffset values will generate contacts. The contact offset must be positive. Contact offset allows the collision detection system to predictively enforce the contact constraint even when the objects are slightly separated.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答