Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

CompositeCollider2D.vertexDistance

Switch to Manual
public float vertexDistance;

Description

Controls the minimum distance allowed between generated vertices.

Controls the minimum distance allowed between generated vertices. Any vertices closer than or equal to this distance will be removed. Setting too high a distance can result in nothing being generated.

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