damping
Damp cloth motion.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.ClothModule
public float damping { get; set; }
Remarks
Set this to damp the motions of a cloth instance. Must be between zero and one. Setting this to zero will disable cloth damping.
Examples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { GetComponent<Cloth>().damping = 1; }}