기술 자료

Unity Engine

Unity Engine

damping

Damp cloth motion.
읽는 시간 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; }}