Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


selfCollisionDistance

Minimum distance at which two cloth particles repel each other (default: 0.0).
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ClothModule
public float selfCollisionDistance { get; set; }

Remarks

A value larger than 0.0 enables particle versus particle collision. Self-collision distance should be smaller than the smallest distance between two particles in the rest configuration. If the distance is larger, self-collision may violate some distance constraints and result in jittering.