Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

CompositeCollider2D.offsetDistance

Switch to Manual
public float offsetDistance;

Description

Vertices are offset by this distance when compositing multiple physic shapes. Any vertices between shapes within this distance are combined.

Do not set the distance offset to higher than 1% of the Sprite's length, as this may result in a loss in detail when too many vertices are combined together.