CompositeCollider2D.offsetDistance

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.


Did you find this page useful? Please give it a rating: