Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

Cloth.damping

Cambiar al Manual
public float damping;

Descripción

Damp cloth motion.

Set this to damp the motions of a cloth instance. Must be between zero and one. Setting this to zero will disable cloth damping.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { transform.GetComponent<Cloth>().damping = 1; } }