Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

Cloth.sphereColliders

Switch to Manual
public ClothSphereColliderPair[] sphereColliders;

Description

An array of ClothSphereColliderPairs which this Cloth instance should collide with.

Any ClothSphereColliderPair specified in Cloth.capsuleColliders will collide with the cloth vertices. A maximum of 32 spheres are supported.