offsetDistance
Vertices are offset by this distance when compositing multiple physic shapes. Any vertices between shapes within this distance are combined.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public float offsetDistance { get; set; }
Remarks
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.