文档

Unity Engine

Unity Engine

damping

Damp cloth motion.
阅读时间1 分钟最后更新于 1 个月前

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; }}